Android Question Themes shows not the same on differenet activitys

mrossen

Active Member
Licensed User
I am using AHPreferenceActivity.

I have set my own theme and that Works perfect. But when I goes to the preferenceActivity the app shows the standard holo.light themes.

Anyone knows to fix that

B4X:
AddApplicationText(<activity android:name="de.amberhome.objects.preferenceactivity"/>)
SetApplicationAttribute(android:theme, "@style/Theme.Lptheme")
Mogens
 

warwound

Expert
Licensed User
Make the 'android:theme' attribute part of the text passed to the AddApplicationText method:

B4X:
AddApplicationText(<activity android:name="de.amberhome.objects.preferenceactivity"
android:theme="@style/Theme.Lptheme" />)
 
Top