Android Activity Get getThemeUpIndicator(Object info, Activity activity)

Here you can find the source of getThemeUpIndicator(Object info, Activity activity)

Description

get Theme Up Indicator

License

Apache License

Declaration

public static Drawable getThemeUpIndicator(Object info,
            Activity activity) 

Method Source Code

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

import android.app.Activity;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;

public class Main {
    private static final int[] THEME_ATTRS = new int[] { android.R.attr.homeAsUpIndicator };

    public static Drawable getThemeUpIndicator(Object info,
            Activity activity) {/*w  ww. java 2s . c o  m*/
        final TypedArray a = activity.obtainStyledAttributes(THEME_ATTRS);
        final Drawable result = a.getDrawable(0);
        a.recycle();
        return result;
    }
}

Related

  1. provideNavigationAdapter( Activity activity, String[] items)
  2. getThemeUpIndicator(Object info, Activity activity)
  3. getActivityMetaData(Activity activity, String key)
  4. getFirstActivityName(Context context, String pkg)
  5. isSingleFragmentIntent(Activity activity)