Android Question Themes shows not the same on differenet activitys

Discussion in 'Android Questions' started by mrossen, Apr 13, 2015.

  1. mrossen

    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

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

    warwound Expert Licensed User

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

    Code:
    AddApplicationText(<activity android:name="de.amberhome.objects.preferenceactivity"
    android:theme=
    "@style/Theme.Lptheme" />)
     
    DonManfred likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice