ActionBar menu

}

@Override
public boolean onCreateOptionsMenu(Menu menu){

menu.add("Code").setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);

menu.add("MoreBlock").setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);

return true;
}

@Override
public boolean onOptionsItemSelected(final MenuItem item) {
switch (item.getTitle().toString()) {
case "Code":
showMessage("code clicked");
return true;
case "Moreblock":
showMessage("moreblock clicked");
return true;
default:
return super.onOptionsItemSelected(item);
}

Komentar

Cara pembuatan Apps paling Populer

Create Stopwatch App in Android using Sketchware

TextInputLayout in Sketchware

How to find and​ highlight a word in a text field in Sketchware?

A Flash Light App in Sketchware

How to enable download in webview in Sketchware apps?

Intent - Open File By Type

Code for implementing Notifications in Sketchware

How to share an image from Drawable folder?

ActionBar back button

Animation Transtition Animation