No resource identifier found for attribute 'showAsAction' in package 'android'

前端 未结 7 1893
花落未央
花落未央 2021-02-13 19:30

as the title suggest, I\'m getting that error in at least 3 of the XML layout files, however, I dont see the attritube \"showsAsAction\" in any of those XML files, did I miss so

7条回答
  •  死守一世寂寞
    2021-02-13 20:01

    The right answer is to use

    android:showAsAction="ifRoom"
    

    instead where android is

    xmlns:android="http://schemas.android.com/apk/res/android"
    

提交回复
热议问题