Android Activity Set setDisplayHomeAsUpEnabled(Activity activity, boolean b)

Here you can find the source of setDisplayHomeAsUpEnabled(Activity activity, boolean b)

Description

set Display Home As Up Enabled

License

Apache License

Declaration

public static void setDisplayHomeAsUpEnabled(Activity activity,
            boolean b) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import android.app.ActionBar;
import android.app.Activity;

public class Main {
    public static void setDisplayHomeAsUpEnabled(Activity activity,
            boolean b) {
        ActionBar actionBar = activity.getActionBar();
        if (actionBar != null) {
            actionBar.setDisplayHomeAsUpEnabled(b);
        }/*from  w w  w  . ja  v  a2  s  . c  o m*/
    }
}

Related

  1. setDisplayHomeAsUpEnabled(Activity a, boolean enabled)
  2. setNavigationSelected(Activity activity, ArrayAdapter adapter, String selected)
  3. setNavigationList(Activity activity, SpinnerAdapter adapter, ActionBar.OnNavigationListener listener)
  4. setDisplayHomeAsUpEnabled(Activity activity, boolean b)
  5. onCreateSetTheme(Activity activity)
  6. addView(Activity act, View v, Rect rect)
  7. enableHardwareAccelerate(Activity activity)