Most visited

Recently visited

AppCompatResources

public final class AppCompatResources
extends Object

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


通过AppCompat访问应用程序资源的类,以及任何向后兼容的功能。

Summary

Public methods

static ColorStateList getColorStateList(Context context, int resId)

从给定资源返回 ColorStateList

Inherited methods

From class java.lang.Object

Public methods

getColorStateList

ColorStateList getColorStateList (Context context, 
                int resId)

从给定资源返回ColorStateList 无论API级别如何,资源都可以包含可定向属性。

Parameters
context Context: content to inflate against
resId int: the resource identifier of the ColorStateList to retrieve
Returns
ColorStateList

Hooray!