Revision 93847dfc
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/config/ConfigScreenPane.java | ||
---|---|---|
49 | 49 |
R.id.configDifficulty4 |
50 | 50 |
}; |
51 | 51 |
|
52 |
private static final int[] CHECK = |
|
53 |
{ |
|
54 |
R.drawable.diff_check0, |
|
55 |
R.drawable.diff_check1, |
|
56 |
R.drawable.diff_check2, |
|
57 |
R.drawable.diff_check3, |
|
58 |
R.drawable.diff_check4, |
|
59 |
}; |
|
60 |
|
|
61 |
private static final int[] UNCHECK = |
|
62 |
{ |
|
63 |
R.drawable.diff_uncheck0, |
|
64 |
R.drawable.diff_uncheck1, |
|
65 |
R.drawable.diff_uncheck2, |
|
66 |
R.drawable.diff_uncheck3, |
|
67 |
R.drawable.diff_uncheck4, |
|
68 |
}; |
|
69 |
|
|
70 | 52 |
private static final int NUM_IMAGES = IMAGES.length; |
71 | 53 |
private static final float PADDING_RATIO = 0.015f; |
72 | 54 |
private static final float TEXT_RATIO = 0.025f; |
... | ... | |
114 | 96 |
for(int i=0; i<NUM_IMAGES; i++) |
115 | 97 |
{ |
116 | 98 |
ImageView image = layout.findViewById(IMAGES[i]); |
117 |
image.setImageResource( i==difficulty ? CHECK[i] : UNCHECK[i] );
|
|
99 |
image.setImageResource( i==difficulty ? R.drawable.ui_difficulty_checked : R.drawable.ui_difficulty_unchecked );
|
|
118 | 100 |
} |
119 | 101 |
} |
120 | 102 |
|
Also available in: Unified diff
Progress with Object Config UI.