getActionView() of my MenuItem return null

后端 未结 5 1282
囚心锁ツ
囚心锁ツ 2020-11-30 13:41

I just would like to tweak the View of an ActionBar MenuItem by code.

Unfortunately, it seems that getActionView always return null!

My code:



        
5条回答
  •  一向
    一向 (楼主)
    2020-11-30 13:55

    getActionView() only works if there's a custom actionView from setActionView.

提交回复
热议问题