設定アプリの外観を達成しようとしています。これは、カテゴリ間に仕切りを追加するソリューションを探していることを意味します。PreferenceFragmentのカテゴリ間のデバイダ
だから、私は解決策を見つけたと思ったが、残念ながらそれは私のために働いていません。私はレイアウトで空のプリファレンスを追加する必要が示唆されたとおり:
ここ</PreferenceCategory>
<Preference
android:title="Test"
android:summary="Summary"/>
</PreferenceCategory>
<Preference layout="@layout/divider_preference" />
<PreferenceCategory
android:title="Category"/>
は、分周器である:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="10dp"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="5dp"
android:background="@drawable/shadow_bottom"/>
<View
android:layout_width="match_parent"
android:layout_height="5dp"
android:background="@drawable/shadow_top"/>
</LinearLayout>
しかし、私が得るには、単に空の好みである:それでは、どのようにできた
私はそれを修正する?
あなたはsummary' '後の境界線をしたいですか? –
設定カテゴリ間の行を分割します。 –
だから、直線の後ろに現れるようにするには直線(ドットなし)と後ろに隙間がないようにしたいですか? –