私は新しい開発者です。嗜好の間のスペースは大きく、良くないようです。私は定義された優先レイアウトファイルを持っています。 それらをより近くに設定するには?ありがとう!プリファレンス間のスペースを設定する方法
あるpreferences.xml
<PreferenceCategory
android:title="@string/title_user_profile"
android:key = "@string/preference_key_category_usersetting"
android:layout="@layout/preference_layout">
<Preference android:title="@string/user_email_address"
android:key="@string/preference_key_email"
android:summary="@string/summary_joined_from"
android:editable="false"
android:clickable="false"
android:lineSpacingExtra="-4dp"/>
<com.ipretii.app.activity.setting.NamePreference
android:key="@string/preference_key_username"
android:summary="Type in your user name"
android:lineSpacingExtra="-4dp"/>
<com.ipretii.app.activity.setting.BirthYearPickerPreference
android:title="Birth Year"
android:key="@string/preference_key_birthyear"
android:lineSpacingExtra="-4dp"/>
</PreferenceCategory>
preference_layout.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:id="@+android:id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/text_size_title"
android:textColor="@color/colorPrimary"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="16dp"/>
<TextView android:id="@android:id/summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/text_size_subheading"
android:textColor="@color/colorSubHeadingText"
android:paddingRight="16dp"/>
</LinearLayout>
はい、私は縦に近いほうがいいです。私はpaddingTopを小さく設定し、それを取り除いた。スペースはまだ縮小されていません。 –