Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to apply fast scroll using PreferenceActivity?
- <PreferenceCategory android:title="@string/label_settingfirstcategory" android:key="first_category">
- <ListPreference
- android:key="updates_interval"
- android:title="@string/label_countrycode"
- android:summary="@string/label_countrycodesummary"
- android:entries="@array/countrycode"
- android:entryValues="@array/countrycode"
- />
- </PreferenceCategory>
- public class SettingsActivity extends PreferenceActivity {
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- addPreferencesFromResource(R.layout.preferences);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment