- Host activity:
DialerSettingsActivity
- Fragment:
DialerSettingsFragment
- Root layout:
@layout/dialer_settings_activity
- Theme:
@style/Theme.Dialer.Setting
- Preferences:
R.xml.settings_page
Figure 1. Settings screen
Component | Property | Value |
---|---|---|
Toolbar appearance | android:toolbarStyle
|
@style/Widget.Dialer.Toolbar |
android:navigationIcon
|
@drawable/ic_arrow_back |
|
android:actionBarSize
|
96dp |
|
android:label
|
@string/setting_title |
|
Preference appearance | preferenceTheme
|
@style/PreferenceTheme |
Figure 2. Preference appearance
Start screen setting:
android:entries="@array/tabs_title" android:entryValues="@array/tabs_config"
- Dialog.
android.app.AlertDialog
- Theme.
Theme.DeviceDefault.Dialog.Alert
Figure 2. Contact Order setting
Contact order setting:
android:entries="@array/contact_order_entries" android:entryValues="@array/contact_order_entry_values"
- Dialog.
android.app.AlertDialog
- Theme.
Theme.DeviceDefault.Dialog.Alert