当前位置: 动力学知识库 > 问答 > 编程问答 >

cannot change theme android

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: