![]() When you press on particular item, it shows a toast message. Intent myIntent new Intent ( this, SecondActivity.class) Press ALT + Enter to add the Intent library as an import. ![]() Toast public class MainActivity extends Activity This displays a menu which contains some options, if you click outside of displayed menu, it disappears.ģ) Java file: (MainActivity.java) package com. Submitted by Shamikh Faraz, on March 11, 2018Īndroid code to create, display Option Menu - Here, we have an example, which can be used to create Option Menu in our Android project. In this article, we are going to learn how to create Option Menu in Android? This post contains source code files (XML, Java and Output).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |