问题描述:

For some reason I can't change the theme on my app. I want the light theme, but the following line in styles.xml doesn't change the theme.

 <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar" />

Am I missing something simple? It looks like the styles.xml setting is being overridden somewhere else.

Thanks.

网友答案:

Look at your AndroidManifest.xml file, there should be a line like below, change the theme from there.

    <manifest>
            <application android:theme="@style/Green" />
                <uses-sdk android:targetSdkVersion="19"/>
    </manifest>
网友答案:

Update: This was a problem with the AndroidManifest.xml file, not a code over-ride.

相关阅读:
Top