Which call shows the Up (←) arrow in the action bar?
- supportActionBar?.showBack()
- finish()
- toolbar.upEnabled = 1
- supportActionBar?.setDisplayHomeAsUpEnabled(true)
Answer
D) supportActionBar?.setDisplayHomeAsUpEnabled(true)
setDisplayHomeAsUpEnabled shows the Up button.
Computer Science MCQ · More Action Bar and User Interface Design MCQs · Practise