默认选择背景可点击查看 [英] Default selector background in Clickable Views
问题描述
我有一些可点击的意见,我想设置默认提供的背景是present在列表中单击(在ICS为蓝色)。我试图把为背景的:
I have some clickable views and I want to set the default available background that is present on list click (in ICS is a blue color). I have tried putting as background this:
android:background="@android:drawable/list_selector_background"
但它不是默认的蓝色我在默认情况下(我用的是橙色)。什么是默认使用的Android作为点击选择提拉?
but it is not the default blue I have by default (the one I used is orange). What is the drawable used by default on android as click selector?
感谢
推荐答案
这是 list_selector_holo_dark
或等值全息光版本;而这些都是在蜂窝和上面的默认值。 list_selector_background
是非全息版,姜饼及以下使用。
It's list_selector_holo_dark
or the equivalent holo light version; and these are the defaults in Honeycomb and above. list_selector_background
is the non-holo version, used in Gingerbread and below.
修改:我的认为的(但无法证实),该平台无关的选择是<一个href="https://developer.android.com/reference/android/R.attr.html#listSelector"><$c$c>?android:attr/listSelector$c$c>
EDIT: I believe (but can't confirm) that the platform agnostic selector is ?android:attr/listSelector
这篇关于默认选择背景可点击查看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!