의 요약 필드 :나는 이런 식으로 뭔가를 보았다 PreferenceCategory 태그
<PreferenceCategory xmlns:android="http://schemas.android.com/apk/res/android"
android:key="vegi_category" android:title="Vegetables"
android:summary="Preferences related to vegetable"> <!-- Why is this here? -->
<CheckBoxPreference android:key="tomato_selection_pref"
android:title="Tomato " android:summary="It's actually a fruit" />
<CheckBoxPreference android:key="potato_selection_pref"
android:title="Potato" android:summary="My favorite vegetable" />
</PreferenceCategory>
하지만 왜 현 범주에 대한 요약 필드가 그것을 얻을하지 않습니다
(android:summary="Preferences related to vegetable"
가)?
프리뷰 화면을 사용하면 요약이보기에 표시되지만 프리프 카테고리에서는 그렇지 않습니다. 선행 카테고리에 요약의 존재 여부는 어떻게 든 볼 수 있습니다.
pref category 요소에서 summary의 실제 사용법은 무엇입니까?
이 작품 특별한 화면 크기에 대한 diff를한다. 하지만 아주 좋은 성능이 아닙니다. –
나는 이것이 잘 작동한다는 것을 안다. (레이아웃을 바꾸는 것에 비해 안드로이드 버전과 룩앤필이 일치해야하기 때문에). 추가적으로'android : selectable = false'를 추가하면 비슷한 모양과 느낌을 얻을 수 있습니다. –