OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:ColorStateList
(Results
1 - 16
of
16
) sorted by null
/frameworks/base/core/java/android/content/res/
ColorStateList.java
39
* {@link android.content.res.
ColorStateList
}s are created from XML resource files defined in the
62
public class
ColorStateList
implements Parcelable {
69
private static final SparseArray<WeakReference<
ColorStateList
>> sCache =
70
new SparseArray<WeakReference<
ColorStateList
>>();
72
private
ColorStateList
() { }
75
* Creates a
ColorStateList
that returns the specified mapping from
78
public
ColorStateList
(int[][] states, int[] colors) {
94
* Creates or retrieves a
ColorStateList
that always returns a single color.
96
public static
ColorStateList
valueOf(int color) {
99
WeakReference<
ColorStateList
> ref = sCache.get(color)
[
all
...]
/cts/tests/tests/widget/src/android/widget/cts/
RemoteViewsTest.java
27
import android.content.res.
ColorStateList
;
504
assertSame(
ColorStateList
.valueOf(R.color.testcolor1), textView.getTextColors());
508
assertSame(
ColorStateList
.valueOf(R.color.testcolor2), textView.getTextColors());
TextViewTest.java
28
import android.content.res.
ColorStateList
;
405
assertSame(
ColorStateList
.valueOf(Color.GREEN), mTextView.getTextColors());
409
assertSame(
ColorStateList
.valueOf(Color.BLACK), mTextView.getTextColors());
413
assertSame(
ColorStateList
.valueOf(Color.RED), mTextView.getTextColors());
415
// using
ColorStateList
417
ColorStateList
colors = new
ColorStateList
(new int[][] {
581
assertSame(
ColorStateList
.valueOf(Color.GREEN), mTextView.getHintTextColors());
584
assertSame(
ColorStateList
.valueOf(Color.BLUE), mTextView.getHintTextColors());
588
assertSame(
ColorStateList
.valueOf(Color.RED), mTextView.getHintTextColors())
[
all
...]
/prebuilts/sdk/10/
android.jar
/prebuilts/sdk/11/
android.jar
/prebuilts/sdk/12/
android.jar
/prebuilts/sdk/14/
android.jar
/prebuilts/sdk/15/
android.jar
/prebuilts/sdk/18/
android.jar
/prebuilts/sdk/19/
android.jar
/prebuilts/sdk/4/
android.jar
/prebuilts/sdk/5/
android.jar
/prebuilts/sdk/6/
android.jar
/prebuilts/sdk/7/
android.jar
/prebuilts/sdk/9/
android.jar
/prebuilts/sdk/current/
android.jar
Completed in 1009 milliseconds