Android 为什么我的ActionBar不会出现

Android 为什么我的ActionBar不会出现,android,Android,我的values-v11/styles.xml文件如下,但ActionBar不会显示在我的Nexus5API19上。它设法设计文本视图和背景的样式,因此主题正在设置中,而不是使用ActionBar。怎么了 styles.xml 您是否还有其他文件夹存放值,如values-v14等?请尝试取出操作栏上的背景项,看看这是否有用?@ShobhitPuri我有values,values-v11和values-v21。所以API 19应该使用v11。@Shahzad-删除actionbar上的背景项恐怕没

我的values-v11/styles.xml文件如下,但ActionBar不会显示在我的Nexus5API19上。它设法设计文本视图和背景的样式,因此主题正在设置中,而不是使用ActionBar。怎么了

styles.xml


您是否还有其他文件夹存放值,如values-v14等?请尝试取出操作栏上的背景项,看看这是否有用?@ShobhitPuri我有values,values-v11和values-v21。所以API 19应该使用v11。@Shahzad-删除actionbar上的背景项恐怕没有什么区别。
<resources xmlns:android="http://schemas.android.com/apk/res/android">

    <!-- Base application theme. -->
    <style name="AppTheme" parent="@style/Theme.AppCompat">
        <item name="android:textViewStyle">@style/AppTheme.TextView</item>
        <item name="android:actionBarStyle">@style/ActionBar</item>
    </style>

    <style name="ActionBar" parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
        <item name="android:background">@drawable/ab_solid</item>
    </style>

    <style name="AppTheme.TextView" parent="android:Widget.TextView" >
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:padding">10dp</item>
        <item name="android:gravity">center</item>
        <item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
    </style>

    <style name="AppTheme.TextView.Header">
        <item name="android:textColor">#666666</item>
    </style>

</resources>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="uk.lobsterdoodle.kkworkhours.app" >

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="uk.lobsterdoodle.kkworkhours.app.WeekActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>
package uk.lobsterdoodle.kkworkhours.app;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TableRow;


public class WeekActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_schedule);

        ...some non-actionbar related stuff...
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {

        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.week, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();
        if (id == R.id.action_settings) {
            return true;
        }
        return super.onOptionsItemSelected(item);
    }

}