Android examples for App:Resource
get Style Id from resource
/**/*from w w w . j av a 2 s . co m*/ * Created by slynero at 2:23 on 14-7-18. * Copyright (c) 2014 FineSoft. All rights reserved. */ //package com.java2s; import android.content.Context; public class Main { public static int getStyleId(Context paramContext, String paramString) { return paramContext.getResources().getIdentifier(paramString, "style", paramContext.getPackageName()); } }