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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -