단순히 활동의 배경색을 변경하려고했지만 아무 것도 변경되지 않았습니다. 여기 테마가 적용되지 않습니다.
가 관련 XML입니다 :styles.xml
<resources>
<style name="STBTheme" parent="android:Theme.Light" >
<item name="android:windowBackground">@color/blue</item>
</style>
</resources>
의 AndroidManifest.xml 또한
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.pedro.stb"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/STBTheme" >
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main"
android:theme="@style/STBTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
, 나는 Eclipse를 사용하고을 변경하여 해요 테마가 액티비티의 xml에 있으면 그래픽 레이아웃에서 변경되지 않습니다.
어떤 도움이 필요합니까?
편집 제대로 작동합니다. 레이아웃을 다시로드하기 전에 프로젝트를 정리해야합니다. 매우 성가신 ...
이 활동에 사용되는 XML 레이아웃에서 색이나 테마를 설정 했습니까? – Dharmendra
@Dharmendra 활동 XML의 어디에서 추가해야합니까? – user1491915