<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:minHeight="?attr/actionBarSize"
android:background="@drawable/actionbar_bg_gradient_light"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
出现以下的错误
No resource found that matches the given name(at'minHeight'with value'?attr/actionBarSize')
No resource found that matches the given name(at'theme'with value'@style/ThemeOverlay.AppCompat.Dark.ActionBar')
No resource found that matches the given name(at'popupTheme'with value'@style/ThemeOverlay.AppCompat.Light')
A few steps to use support-v7:
Pay attention to check whether the style of the Eclipse layout preview is the style defined by appcompat_v7.