com.actionbarsherlock.internal
Class ResourcesCompat

java.lang.Object
  extended by com.actionbarsherlock.internal.ResourcesCompat

public final class ResourcesCompat
extends Object


Method Summary
static boolean getResources_getBoolean(android.content.Context context, int id)
          Support implementation of getResources().getBoolean() that we can use to simulate filtering based on width and smallest width qualifiers on pre-3.2.
static int getResources_getInteger(android.content.Context context, int id)
          Support implementation of getResources().getInteger() that we can use to simulate filtering based on width qualifiers on pre-3.2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResources_getBoolean

public static boolean getResources_getBoolean(android.content.Context context,
                                              int id)
Support implementation of getResources().getBoolean() that we can use to simulate filtering based on width and smallest width qualifiers on pre-3.2.

Parameters:
context - Context to load booleans from on 3.2+ and to fetch the display metrics.
id - Id of boolean to load.
Returns:
Associated boolean value as reflected by the current display metrics.

getResources_getInteger

public static int getResources_getInteger(android.content.Context context,
                                          int id)
Support implementation of getResources().getInteger() that we can use to simulate filtering based on width qualifiers on pre-3.2.

Parameters:
context - Context to load integers from on 3.2+ and to fetch the display metrics.
id - Id of integer to load.
Returns:
Associated integer value as reflected by the current display metrics.


Copyright © 2013 MottiMotti Norway. All Rights Reserved.