android.support.v7 with `ActionBarActivity` no menu shows

后端 未结 2 1310
抹茶落季
抹茶落季 2020-12-08 04:22

In the new update Google has released a new API support library, that supports the ActionBar in API level 7+.

I used ActionBarSherlock until this update and I wrot

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-08 04:57

    I'd like to add a little to the answer.

    If you want to see both text and an icon, please use withText in showAsAction I've just tested it; when I used always or ifRoom without withText, I only saw an icon.

提交回复
热议问题