Other Material Design Issue

marcel

Active Member
Licensed User
Longtime User
Hi,

First of all, Happy New Year!!

I am using this example program https://www.b4x.com/android/forum/threads/material-design-3-using-a-toolbar-as-actionbar.49053/ to create a new app. I would like to add preferences to my app so I am using the nice lib AHPreferenceActivity Library.

My problem now is how to get the AHPreferenceActivity Library sofar that the colors I am using in the material design is similar in the AHPreferenceActivity. Currently I am only able to have a black background or a white by playing with the themes.

Is there a possibility or should I not use this AHPreferenceActivity Library at all and start all over again :(?
 
Hi Marcel,

did you create the folder "values-v21" in resources ? (add theme.xml)

and SetApplicationAttribute(android:theme, "@style/MyAppTheme")
 
Upvote 0
Prepare your app for material. Follow the first two tutorials on how to build a Material App using Appcompat.
You need to define a own Theme
 
Upvote 0
but the problem is the AHPreferenceActivity is still in black or white
There will be an PreferenceExtras library available soon (it is in beta test as yet) written by @warwound ...
This will allow you to use nearly any activity as an Preference-Activity...

If i find the time i´ll create a small testproject in Material style and post a screenshot
 
Upvote 0
Back
Top