在android系统删除反弹时的光芒? [英] Remove overscroll glow in android?

查看:136
本文介绍了在android系统删除反弹时的光芒?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序,我实现JasonFry反弹时的ListView,但我想摆脱对滚动功能出现恼人的蓝色光晕。这似乎很奇怪,它是如此复杂,删除此...任何帮助将是pciated大大AP $ P $

In my application I am implementing the JasonFry overscroll listview, though I want to get rid of the annoying blue glow that appears on the scroll function. It seems very odd that it is so complicated to remove this... Any help would be greatly appreciated

推荐答案

就像我回答这里
要完全删除青色光晕:

like I answered here To remove blue glow completely:

安卓overScrollMode =从不
里面放置的ListView此属性。结果
要改变发光颜色的应用程序类添加此code

android:overScrollMode="never" place this attribute inside listview.
To change glow color add this code in application class

int glowDrawableId = getResources().getIdentifier("overscroll_glow", "drawable", "android");
        int edgeDrawableId = getResources().getIdentifier("overscroll_edge", "drawable", "android");
        Drawable androidGlow = ContextCompat.getDrawable(this, glowDrawableId);
        Drawable androidEdge = ContextCompat.getDrawable(this, edgeDrawableId);
        androidGlow.setColorFilter(getResources().getColor(R.color.white_20), PorterDuff.Mode.SRC_IN);
        androidEdge.setColorFilter(getResources().getColor(R.color.white_20), PorterDuff.Mode.SRC_IN);

这篇关于在android系统删除反弹时的光芒?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆