Why is the up button present without setDisplayHomeAsUpEnabled()?

后端 未结 2 738
北荒
北荒 2021-02-13 21:16

According to Google\'s document, getActionBar().setDisplayHomeAsUpEnabled(true) is needed to show the up button. I created a bare-bone activity using the wizard in

2条回答
  •  生来不讨喜
    2021-02-13 22:04

    When you specify a parentActivityName in your AndroidManifest, Acitivty will check for that and automatically enable the "up" affordance if it's present.

提交回复
热议问题