去除青色光晕周围的ListItem在ListView控件(机器人) [英] remove blue glow around ListItem in ListView (android)
本文介绍了去除青色光晕周围的ListItem在ListView控件(机器人)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想摆脱这种可怕的蓝色HOLO的点击时焕发在我listItems中。
我有:
< ListView控件
机器人:ID =@ + ID / projects_list
机器人:layout_width =FILL_PARENT
机器人:layout_height =FILL_PARENT
机器人:cacheColorHint =#00000000
机器人:choiceMode =singleChoice
机器人:listSelector =@机器人:彩色/透明
机器人:paddingBottom会=0dp
机器人:paddingLeft =0dp
机器人:paddingRight =0dp
机器人:滚动条=无/>
但它仍然看起来是这样的:
http://www.roji.be/IMG_0001.png
更新:
确定我的应用程序他们的是:
<样式名称=AppBaseTheme父=机器人:风格/ Theme.Light>
<项目名称=机器人:actionBarStyle> @风格/动作条< /项目>
<项目名称=机器人:windowBackground> @绘制/ gradient_bg< /项目>
<项目名称=机器人:windowContentOverlay> @空< /项目>
< /风格>
和每个列表项被包裹在一个的LinearLayout
< LinearLayout中的xmlns:机器人=http://schemas.android.com/apk/res/android
的xmlns:程序=http://schemas.android.com/apk/res/com.axxes.netinc
机器人:layout_width =FILL_PARENT
机器人:layout_height =WRAP_CONTENT
机器人:背景=@绘制/ listitemshadow// 9patch阴影
机器人:方向=垂直
机器人:paddingTop =8DP>
解决方案
列表视图无法比拟的设置衰落的边缘。
< ListView控件
机器人:ID =@ + ID / projects_list
机器人:layout_width =FILL_PARENT
机器人:layout_height =FILL_PARENT
机器人:cacheColorHint =#00000000
机器人:choiceMode =singleChoice
机器人:listSelector =@机器人:彩色/透明
机器人:paddingBottom会=0dp
机器人:paddingLeft =0dp
机器人:paddingRight =0dp
机器人:滚动条=无
机器人:fadingEdge =无/>
I want to get rid of this horrible blue HOLO glow around my listitems when clicked.
I have:
<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" />
but it still looks like this: http://www.roji.be/IMG_0001.png
UPDATE: ok my app them is :
<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>
And each listitem is wrapped in a 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" >
解决方案
set fading edge of listview to none.
<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" />
这篇关于去除青色光晕周围的ListItem在ListView控件(机器人)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文