Android首选项页面分隔符删除/样式设置
我正试图找出如何在我的Android首选项屏幕中定制项目之间的分隔符。我基本上希望每个项目之间都有一条灰线(默认情况下,最后一个项目没有灰线)。这是我当前的设置。greyline可绘制工程,每个项目都有其灰色的底线,除了默认的分隔线仍然存在,因此除底部外,每个项目都有一条双厚度线。如何设置/编辑项目1和项目2之间的默认行的样式 我有pref_general.xmlAndroid首选项页面分隔符删除/样式设置,android,android-preferences,Android,Android Preferences,我正试图找出如何在我的Android首选项屏幕中定制项目之间的分隔符。我基本上希望每个项目之间都有一条灰线(默认情况下,最后一个项目没有灰线)。这是我当前的设置。greyline可绘制工程,每个项目都有其灰色的底线,除了默认的分隔线仍然存在,因此除底部外,每个项目都有一条双厚度线。如何设置/编辑项目1和项目2之间的默认行的样式 我有pref_general.xml <PreferenceCategory android:title="Items" android:key="
<PreferenceCategory
android:title="Items"
android:key="items">
<Preference android:title="Item 1"
android:layout="@layout/app_legal"
android:key="legal"/>
<Preference android:title="Item 2"
android:layout="@layout/app_legal"
android:key="legal2"/>
</PreferenceCategory>
我有app_legal.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/greyline">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp"
android:layout_marginLeft="10dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Politica sulla riservatezza"
android:id="@+id/textView"
android:textSize="18sp"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
</RelativeLayout>
</LinearLayout>