If you set the selectability of a preference item to false, you will notice that the dividers around that item will disappear.
Do you know if there is a way to keep those dividers?
I have looked at the ListView API and could not find a solution that could be applied here, since there is no selectable attribute for ListView items (except for the headers and footers).
Thanks!
I did it with a 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" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With