What is the alternative to getActionBar()?

后端 未结 2 1772
小蘑菇
小蘑菇 2020-12-21 22:49

When I try to use getActionBar() it says it is deprecated, so that means by going forward we are not allowed to use getActionBar().

Which

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-21 23:21

    If you are using appcompat, the correct method is getSupportActionBar()

提交回复
热议问题