showAsAction = “always” is ignored in Toolbar

前端 未结 2 1461
独厮守ぢ
独厮守ぢ 2020-12-19 11:37

After switching to toolbar there is a problem with menu icons. Although I set for a menu item android:showAsAction=\"always\" it does not show the icon, I can only find it c

2条回答
  •  半阙折子戏
    2020-12-19 12:10

    With AppCompat there is a little change. If you are running lint it will complain about it. Type this:

    
    
    
    
    

    You need to declare the "app" namespace and reference it.

提交回复
热议问题