나는 새로운 개발자입니다. 환경 설정 사이의 공간은 크고 좋지 않습니다. 정의 된 레이아웃 파일이 있습니다. 어떻게 가까이에 설정합니까? 고마워요!기본 설정 사이에 공백을 설정하는 방법
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을 작게 설정하고 제거했습니다. 공간은 여전히 축소되지 않습니다. –