public abstract class ResourceValue extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ResourceValue.ReferenceResourceValue
ReferenceResource ref one another resources, and may has different value for different resource config(locale, density, etc)
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
value |
| 限定符 | 构造器和说明 |
|---|---|
protected |
ResourceValue(int value) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ResourceValue |
bool(int value) |
static ResourceValue |
decimal(int value) |
static ResourceValue |
dimension(int value) |
static ResourceValue |
fraction(int value) |
static ResourceValue |
hexadecimal(int value) |
static ResourceValue |
nullValue() |
static ResourceValue |
raw(int value,
short type) |
static ResourceValue |
reference(int value) |
static ResourceValue |
rgb(int value,
int len) |
static ResourceValue |
string(int value,
StringPool stringPool) |
abstract String |
toStringValue(ResourceTable resourceTable,
Locale locale)
get value as string.
|
public abstract String toStringValue(ResourceTable resourceTable, Locale locale)
public static ResourceValue decimal(int value)
public static ResourceValue hexadecimal(int value)
public static ResourceValue bool(int value)
public static ResourceValue string(int value, StringPool stringPool)
public static ResourceValue reference(int value)
public static ResourceValue nullValue()
public static ResourceValue rgb(int value, int len)
public static ResourceValue dimension(int value)
public static ResourceValue fraction(int value)
public static ResourceValue raw(int value, short type)
Copyright © 2019. All rights reserved.