android - Is there a way to keep the dividers around a non selectable preference? -
if set selectability of preference item false, notice dividers around item disappear.
do know if there way keep dividers?
i have looked @ listview api , not find solution applied here, since there no selectable attribute listview items (except headers , footers).
thanks!
i did hack.
<preference android:layout="@layout/preference_divider" /> <preference android:title="@string/whatever" android:selectable="false" />
res/layout/preference_divider.xml
<?xml version="1.0" encoding="utf-8"?> <view xmlns:android="http://schemas.android.com/apk/res/android" android:background="#cccccc" android:layout_width="fill_parent" android:layout_height="1px" />
Comments
Post a Comment