안드로이드 개발 질문/답변
(글 수 45,052)
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/date_and_time">
<CheckBoxPreference android:key="auto_time"
android:title="@string/date_time_auto"
android:summaryOn="@string/date_time_auto_summaryOn"
android:summaryOff="@string/date_time_auto_summaryOff"
android:shouldDisableView="true"
/>
<Preference android:key="date"
android:title="@string/date_time_set_date"
android:summary="03/10/2008"
/>
<PreferenceScreen android:key="timezone"
android:title="@string/date_time_set_timezone"
android:summary="GMT-8:00"
/>
<Preference android:key="time"
android:title="@string/date_time_set_time"
android:summary="12:00am"
/>
<CheckBoxPreference android:key="24 hour"
android:title="@string/date_time_24hour"
android:summaryOn="@string/date_time_24_hour_sample"
android:summaryOff="@string/date_time_12_hour_sample"/>
<ListPreference
android:key="date_format"
android:title="@string/date_time_date_format"
android:summary="mm/dd/yyyy"/>
</PreferenceScreen>
위의 xml 값은 안드로이드 소스에 있는 환경설정 > 날짜 및 시간 설정에 들어가는 xml 입니다.
맨위에 있는 CheckPreference(auto_time) 이 부분이 기본값으로 체킹 되어있는거 같은데 그 기본값을
바꾸려고 합니다.
현재 저 xml에 나와있는 Preference 값들이 속성 값만 보이는데 어디에 정의가 되어있는지 알고 싶습니다.