The easiest way of adding menu items (to specify the options menu for an activity) is inflating an XML file into the Menu via MenuInflater. With menu_main.xml we can do it in this way:
The easiest way of adding menu items (to specify the options menu for an activity) is inflating an XML file into the Menu via MenuInflater. With menu_main.xml we can do it in this way:
A . override fun onCreateOptionsMenu(menu: Menu): Boolean { menuInflater.inflate(
B . menu.menu_main, menu) return true
}
C . override fun onOptionsItemSelected(item: MenuItem): Boolean { menuInflater.inflate(
D . menu.menu_main, menu) return super.onOptionsItemSelected(item) }
E . override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(
F . menu.menu_main) }
Answer: A
Explanation:
Reference: https://developer.android.com/guide/topics/ui/accessibility/custom-views
Latest Associate Android Developer Dumps Valid Version with 107 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund