Giter Site home page Giter Site logo

msoftware / actionbarpreferenceactivity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from androiddeveloperlb/materialpreferencelibrary

0.0 2.0 0.0 546 KB

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

License: Apache License 2.0

Java 100.00%

actionbarpreferenceactivity's Introduction

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:

actionbarpreferenceactivity's People

Contributors

androiddeveloperlb avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.