Android examples for User Interface:ActionBar
set Left ActionBar
//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 } }