FORUMS

[Library] [API 7+] "MaterialPreferenceLibrary" - materialize your preferences

Thanks Meter: 215
 
By AndroidDeveloperLB, Senior Member on 28th May 2015, 06:15 AM
Post Reply Subscribe to Thread Email Thread
I liked that Google supports a lot of devices using its support-library, and offers Material-Design for API 7 and above, but sadly it lacks big time when it comes to the settings screen (PreferenceActivity and related classes).

It's weird to see so many apps have everything in material-design style, yet the settings screens are left behind. Google's own apps have this behavior too.

Even Google's own solution has its disadvantages:
1. no support for SwitchPreference for GB
2. no support for material-design dialogs for any of the preferences.
3. no action bar items for GB

So, I've made my own customized classes and put it in my app, but then I realized other people might want to use it, so I've worked on it further, and published this library:

https://github.com/AndroidDeveloperL...ferenceLibrary

The library, like the support library, support API 7 and above, which is practically 100% of the devices out there.

Here's a demo of how it looks like on GB vs Lollipop:
demo

(go to the library's webpage to see it as a video)

The sample in the repo should be enough to try it out, but you can also see it in action on a real app, like my own "App Manager" app.
Attached Thumbnails
Click image for larger version

Name:	demo.jpg
Views:	68
Size:	33.5 KB
ID:	3335464   Click image for larger version

Name:	demo.jpg
Views:	68
Size:	33.5 KB
ID:	3335464  
Last edited by AndroidDeveloperLB; 28th May 2015 at 06:28 AM.
 
 
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes