Guest User

Untitled

a guest
Aug 10th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. How to apply fast scroll using PreferenceActivity?
  2. <PreferenceCategory android:title="@string/label_settingfirstcategory" android:key="first_category">
  3. <ListPreference
  4. android:key="updates_interval"
  5. android:title="@string/label_countrycode"
  6. android:summary="@string/label_countrycodesummary"
  7. android:entries="@array/countrycode"
  8. android:entryValues="@array/countrycode"
  9.  
  10. />
  11. </PreferenceCategory>
  12.  
  13. public class SettingsActivity extends PreferenceActivity {
  14. @Override
  15. public void onCreate(Bundle savedInstanceState) {
  16. super.onCreate(savedInstanceState);
  17. addPreferencesFromResource(R.layout.preferences);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment