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.
static int loadLogoFromManifest(android.app.Activity activity)
          Attempt to programmatically load the logo from the manifest file of an activity by using an XML pull parser.
 
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.

loadLogoFromManifest

public static int loadLogoFromManifest(android.app.Activity activity)
Attempt to programmatically load the logo from the manifest file of an activity by using an XML pull parser. This should allow us to read the logo attribute regardless of the platform it is being run on.

Parameters:
activity - Activity instance.
Returns:
Logo resource ID.


Copyright © 2012-2013. All Rights Reserved.