Which method makes a Toolbar act as the activity's action bar?
- toolbar.attach()
- setActionBar(true)
- setSupportActionBar(toolbar)
- supportActionBar = toolbar
Answer
C) setSupportActionBar(toolbar)
setSupportActionBar() installs the Toolbar as the app bar.
Computer Science MCQ · More Action Bar and User Interface Design MCQs · Practise