showAsAction
android:showAsAction="ifRoom|collapseActionView"输入后为什么报错“When using the
appcompat library,menu resources should refer to the showAsAction in the app:namespace ,not the android:namespace
android:showAsAction="ifRoom|collapseActionView"输入后为什么报错“When using the
appcompat library,menu resources should refer to the showAsAction in the app:namespace ,not the android:namespace
2016-04-15
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/action_search"
android:icon="@mipmap/actionbar_search_icon"
android:actionViewClass="android.widget.SearchView"
android:title="@string/action_search"
app:showAsAction="ifRoom|collapseActionView"/>
举报