点击时,我想摆脱我的列表项目周围可怕的蓝色HOLO光晕。
我有:
<ListView
android:id="@+id/projects_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:cacheColorHint="#00000000"
android:choiceMode="singleChoice"
android:listSelector="@android:color/transparent"
android:paddingBottom="0dp"
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:scrollbars="none" />
但它仍然如下: http://www.roji.be/IMG_0001.png
更新: 好吧我的应用程序是:
<style name="AppBaseTheme" parent="android:style/Theme.Light">
<item name="android:actionBarStyle">@style/ActionBar</item>
<item name="android:windowBackground">@drawable/gradient_bg</item>
<item name="android:windowContentOverlay">@null</item>
</style>
每个listitem都包含在LinearLayout
中<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/com.axxes.netinc"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/listitemshadow" //9patch shadow
android:orientation="vertical"
android:paddingTop="8dp" >
答案 0 :(得分:2)
将listview的淡化边设置为无。
<ListView
android:id="@+id/projects_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:cacheColorHint="#00000000"
android:choiceMode="singleChoice"
android:listSelector="@android:color/transparent"
android:paddingBottom="0dp"
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:scrollbars="none"
android:fadingEdge="none" />
答案 1 :(得分:0)
完全消除蓝光:
机器人:overScrollMode = “从不” 将此属性放在listview中 要更改发光颜色,请在应用程序类
中添加此代码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);
答案 2 :(得分:0)
只需在列表视图中添加$ pip install SomePackage[PDF]
$ pip install git+https://git.repo/some_pkg.git#egg=SomePackage[PDF]
$ pip install .[PDF] # project in current directory
$ pip install SomePackage[PDF]==3.0 $ pip install SomePackage[PDF,EPUB] # multiple extras
。
android:overScrollMode="never"