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 –