Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Context;
import android.content.res.Resources;

public class Main {
    private static Context context;

    public static int getResStyleID(String resName) {
        Resources res = context.getResources();
        return res.getIdentifier(resName, "style", context.getPackageName());
    }
}