styles.xml:
<style name="AppTheme.NoActionBar">
<item name="colorPrimary">@color/red</item>
<item name="colorAccent">@color/blue</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
AndroidManifest.xml中(部分):
<activity android:name=".actionbar.ActionBarSlider"
android:theme="@style/AppTheme.NoActionBar"
android:parentActivityName=".Home">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="de.*****.testapp.Home" />
</activity>
后我改变
<style name="AppTheme.NoActionBar">
至<style name="ActionBarSlider" parent="AppTheme.NoActionBar">
和
android:theme="@style/AppTheme.NoActionBar"
到android:theme="@style/ActionBarSlider"
上启动应用程序崩溃。 我的错误是什么?
你可以提供你的logcat吗? http://stackoverflow.com/help/mcve –
您是否尝试过后清理您的项目?有时候使用XML会导致R不同步。 – durbnpoisn
@MarianoZorrilla adm:http://puu.sh/kASIX/11e83c4c01.png –