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!