set Left ActionBar - Android User Interface

Android examples for User Interface:ActionBar

Description

set Left ActionBar

Demo Code


//package com.java2s;
import android.app.ActionBar;
import android.app.Activity;

public class Main {
    public static void setLeftActionBar(Activity activity, int imageID) {
        ActionBar actionBar = activity.getActionBar();
        actionBar.setHomeButtonEnabled(true);
        actionBar.setDisplayShowTitleEnabled(false);
        actionBar.setIcon(imageID);//from   www  .jav a2 s. co  m
    }
}

Related Tutorials