开发者

ListView items won't show focus color when click

开发者 https://www.devze.com 2023-02-14 18:50 出处:网络
When i click on listvie开发者_Go百科w, its not show the focus color . <ListView android:id=\"@+id/android:list\"

When i click on listvie开发者_Go百科w, its not show the focus color .

<ListView
         android:id="@+id/android:list"
         android:layout_width="fill_parent"
         android:layout_height="fill_parent"
         android:divider="@color/grey"
         android:dividerHeight="1px" 
         android:drawSelectorOnTop="true"
         android:cacheColorHint="@android:color/transparent"/>


ListViews do not show focus (or selection) while in touch mode. You will only see this when you use the hardware keyboard or controls to navigate your UI.

See the Google Touch Mode Android Blog article for more details.

So, if you are only using touch mode, you will never see focus or selection on ListViews.


if you use transparent color then how it will be see.. just change your color...

0

精彩评论

暂无评论...
验证码 换一张
取 消