Skip to content

Allows to have an ActionBar on PreferenceActivity, even on pre-Honeycomb versions of Android

License

Notifications You must be signed in to change notification settings

JSBerrocoso/ActionBarPreferenceActivity

Repository files navigation

ActionBarPreferenceActivityLibrary

Allows to have an ActionBar even on PreferenceActivity, even for pre-Honeycomb versions of Android.

All this library does is to simply put a Toolbar at the top of the PreferenceActivity, and you need to use the Toolbar instead of the ActionBar.

Screenshots

Gingerbread :

enter image description here

Lollipop :

enter image description here

Requirements

This library needs:

  • API 8 and above.
  • AppCompat v7.

That's it.

What this library doesn't do

Sadly, it doesn't style the preferences, but you can use the one of the support library if you wish.

It has handled dialogs in the past, but no longer. If you wish to have material-style dialogs, you can use this great library: https://github.com/fengdai/AlertDialogPro

Also, note that in order to add action items, you need to do it completely via code, without using XML. Otherwise, on some Android versions (or all?), the action items will all gather inside the overflow menu item.

Thanks

Didn't get a lot of code from others:

About

Allows to have an ActionBar on PreferenceActivity, even on pre-Honeycomb versions of Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java100.0%