Android examples for App:Resource
get resource Attr ID
//package com.java2s; import android.content.Context; public class Main { public static int getAttrID(Context context, String key) { return context.getResources().getIdentifier(key, "attr", context.getPackageName()); }//from ww w . j a v a 2 s .c o m }