Tuesday, January 31, 2012

Custom PreferenceActivity

To customize appearance of PreferenceActivity, simply declare XML layout with whatever layout you want to add and also add a ListView with id = @android:id/list which will be replaced by Preference layout. In your PreferenceActivity just call both setContentView(the custom layout) and call addPreferencesFromResource(preference XML);

2 comments:

  1. Thank you for the info. It sounds pretty user friendly. I guess I’ll pick one up for fun. thank u

    Custom Software Development

    ReplyDelete
  2. Acetech have many years of experience in custom software development delhi. Find out more about custom software development at http://www.acetechindia.com

    ReplyDelete