ActionBar Custom

final ActionBar actionBar = getActionBar();

actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
LayoutInflater inflater = (LayoutInflater) this .getSystemService(Context.LAYOUT_INFLATER_SERVICE);

//add your own Layout R.layout.your

View view = inflater.inflate(R.layout.myview, null);

//find widget to be used in onClick

ImageView img = (ImageView) view.findViewById(R.id.imageview1);

//listener for widget

img.setOnClickListener(new View.OnClickListener(){
    public void onClick(View v){
        // add your  code inside this onClick bracket
    }
});
actionBar.setCustomView(view);
actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);

Komentar

Cara pembuatan Apps paling Populer

TextInputLayout in Sketchware

Create Stopwatch App in Android using Sketchware

How to enable download in webview in Sketchware apps?

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

A Flash Light App in Sketchware

Create Stopwatch App in Android using Sketchware

Code for implementing Notifications in Sketchware

How to share an image from Drawable folder?

Code for implementing Notifications in Sketchware

Firebase Login/Register with email verification