Using support action bar home enabled

后端 未结 5 2330
花落未央
花落未央 2021-02-08 13:31

I\'ve just modified our code to use the new SupportActionBar provided in the v7-appcompat library but when running the code on a Jellybean phone (presumably the same problem exi

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-08 13:59

    You can add an ActionBar to your activity when running on API level 7 or higher by extending ActionBarActivity class for your activity and setting the activity theme to Theme.AppCompat or a similar theme.

提交回复
热议问题