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
舉報
2016-05-05
<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"/>