Android Activity Set setDisplayHomeAsUpEnabled(Activity a, boolean enabled)

Here you can find the source of setDisplayHomeAsUpEnabled(Activity a, boolean enabled)

Description

set Display Home As Up Enabled

License

Open Source License

Declaration

public static void setDisplayHomeAsUpEnabled(Activity a, boolean enabled) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

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

public class Main {
    public static void setDisplayHomeAsUpEnabled(Activity a, boolean enabled) {
        a.getActionBar().setDisplayHomeAsUpEnabled(enabled);
    }//w  w  w  . ja v a2  s. com

    public static ActionBar getActionBar(Activity act) {
        return act.getActionBar();
    }
}

Related

  1. setNavigationSelected(Activity activity, ArrayAdapter adapter, String selected)
  2. setNavigationList(Activity activity, SpinnerAdapter adapter, ActionBar.OnNavigationListener listener)
  3. setDisplayHomeAsUpEnabled(Activity activity, boolean b)
  4. setDisplayHomeAsUpEnabled(Activity activity, boolean b)