Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

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) {
        final TypedArray a = activity.obtainStyledAttributes(THEME_ATTRS);
        final Drawable result = a.getDrawable(0);
        a.recycle();
        return result;
    }
}