Skip to content

Most visited

Recently visited

navigation

AppCompatResources

public final class AppCompatResources
extends Object

java.lang.Object
   ↳ android.support.v7.content.res.AppCompatResources


Class for accessing an application's resources through AppCompat, and thus any backward compatible functionality.

Summary

Public methods

static ColorStateList getColorStateList(Context context, int resId)

Returns the ColorStateList from the given resource.

Inherited methods

From class java.lang.Object

Public methods

getColorStateList

ColorStateList getColorStateList (Context context, 
                int resId)

Returns the ColorStateList from the given resource. The resource can include themeable attributes, regardless of API level.

Parameters
context Context: content to inflate against
resId int: the resource identifier of the ColorStateList to retrieve
Returns
ColorStateList
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.