Android manifest doesn't recognise a system theme listed in styles.xml

OzzQuvmIlrreet

New Member
In my manifest the app theme points to an android style listed in the styles.xml file:\[code\]<manifest xmlns:android="http://schemas.android.com/apk/res/android"package="test.theme"android:versionCode="1"android:versionName="1.0" ><uses-sdk android:minSdkVersion="16" android:targetSdkVersion="15" /><application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name=".MainActivity" android:label="@string/title_activity_main" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity></application>\[/code\]styles.xml:\[code\]<resources> <style name="AppTheme" parent="android:Theme.Black" /></resources>\[/code\]but for some reason the theme isn't recognised and it loads a white theme instead. Yet it functions as expected when I put the theme directly into the manifest like this:\[code\]<application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@android:style/Theme.Black" >\[/code\]Even in an empty default project the same problem occurs. The value AppTheme is listed in R.java so the file is being recognised ok. Does anyone have any other ideas what the problem might be?
 
Back
Top