Revision 4348b52e
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/movingeffects/MovingEffectsActivity.java | ||
---|---|---|
37 | 37 |
private static final int COLOR_UNPRESSED = 0x888888ff; |
38 | 38 |
private static final String SHOWED_TOAST = "showed_toast"; |
39 | 39 |
|
40 |
Button mAbort, mMacro, mTrans, mSink, mBubble, mSwirl;
|
|
40 |
Button mAbort, mChroma, mTrans, mSink, mBubble, mSwirl;
|
|
41 | 41 |
|
42 | 42 |
/////////////////////////////////////////////////////////////////// |
43 | 43 |
@Override |
... | ... | |
48 | 48 |
setContentView(R.layout.movingeffectslayout); |
49 | 49 |
|
50 | 50 |
mAbort = (Button)findViewById(R.id.movingeffectsAbort); |
51 |
mMacro = (Button)findViewById(R.id.movingeffectsMacro);
|
|
51 |
mChroma= (Button)findViewById(R.id.movingeffectsChroma);
|
|
52 | 52 |
mTrans = (Button)findViewById(R.id.movingeffectsTrans); |
53 | 53 |
mSink = (Button)findViewById(R.id.movingeffectsSink); |
54 | 54 |
mBubble= (Button)findViewById(R.id.movingeffectsBubble); |
55 | 55 |
mSwirl= (Button)findViewById(R.id.movingeffectsSwirl); |
56 | 56 |
|
57 | 57 |
mAbort.setBackgroundColor(COLOR_PRESSED); |
58 |
mMacro.setBackgroundColor(COLOR_UNPRESSED);
|
|
58 |
mChroma.setBackgroundColor(COLOR_UNPRESSED);
|
|
59 | 59 |
mTrans.setBackgroundColor(COLOR_UNPRESSED); |
60 | 60 |
mSink.setBackgroundColor(COLOR_UNPRESSED); |
61 | 61 |
mBubble.setBackgroundColor(COLOR_UNPRESSED); |
... | ... | |
119 | 119 |
MovingEffectsSurfaceView.Bubble(); |
120 | 120 |
|
121 | 121 |
mAbort.setBackgroundColor(COLOR_UNPRESSED); |
122 |
mMacro.setBackgroundColor(COLOR_UNPRESSED);
|
|
122 |
mChroma.setBackgroundColor(COLOR_UNPRESSED);
|
|
123 | 123 |
mTrans.setBackgroundColor(COLOR_UNPRESSED); |
124 | 124 |
mSink.setBackgroundColor(COLOR_UNPRESSED); |
125 | 125 |
mBubble.setBackgroundColor(COLOR_PRESSED); |
... | ... | |
133 | 133 |
MovingEffectsSurfaceView.Sink(); |
134 | 134 |
|
135 | 135 |
mAbort.setBackgroundColor(COLOR_UNPRESSED); |
136 |
mMacro.setBackgroundColor(COLOR_UNPRESSED);
|
|
136 |
mChroma.setBackgroundColor(COLOR_UNPRESSED);
|
|
137 | 137 |
mTrans.setBackgroundColor(COLOR_UNPRESSED); |
138 | 138 |
mSink.setBackgroundColor(COLOR_PRESSED); |
139 | 139 |
mBubble.setBackgroundColor(COLOR_UNPRESSED); |
... | ... | |
147 | 147 |
MovingEffectsSurfaceView.Transparency(); |
148 | 148 |
|
149 | 149 |
mAbort.setBackgroundColor(COLOR_UNPRESSED); |
150 |
mMacro.setBackgroundColor(COLOR_UNPRESSED);
|
|
150 |
mChroma.setBackgroundColor(COLOR_UNPRESSED);
|
|
151 | 151 |
mTrans.setBackgroundColor(COLOR_PRESSED); |
152 | 152 |
mSink.setBackgroundColor(COLOR_UNPRESSED); |
153 | 153 |
mBubble.setBackgroundColor(COLOR_UNPRESSED); |
... | ... | |
156 | 156 |
|
157 | 157 |
/////////////////////////////////////////////////////////////////// |
158 | 158 |
|
159 |
public void Macroblock(View v)
|
|
159 |
public void Chroma(View v)
|
|
160 | 160 |
{ |
161 |
MovingEffectsSurfaceView.Macroblock();
|
|
161 |
MovingEffectsSurfaceView.Chroma();
|
|
162 | 162 |
|
163 | 163 |
mAbort.setBackgroundColor(COLOR_UNPRESSED); |
164 |
mMacro.setBackgroundColor(COLOR_PRESSED);
|
|
164 |
mChroma.setBackgroundColor(COLOR_PRESSED);
|
|
165 | 165 |
mTrans.setBackgroundColor(COLOR_UNPRESSED); |
166 | 166 |
mSink.setBackgroundColor(COLOR_UNPRESSED); |
167 | 167 |
mBubble.setBackgroundColor(COLOR_UNPRESSED); |
... | ... | |
175 | 175 |
MovingEffectsSurfaceView.Swirl(); |
176 | 176 |
|
177 | 177 |
mAbort.setBackgroundColor(COLOR_UNPRESSED); |
178 |
mMacro.setBackgroundColor(COLOR_UNPRESSED);
|
|
178 |
mChroma.setBackgroundColor(COLOR_UNPRESSED);
|
|
179 | 179 |
mTrans.setBackgroundColor(COLOR_UNPRESSED); |
180 | 180 |
mSink.setBackgroundColor(COLOR_UNPRESSED); |
181 | 181 |
mBubble.setBackgroundColor(COLOR_UNPRESSED); |
... | ... | |
189 | 189 |
MovingEffectsSurfaceView.Abort(); |
190 | 190 |
|
191 | 191 |
mAbort.setBackgroundColor(COLOR_PRESSED); |
192 |
mMacro.setBackgroundColor(COLOR_UNPRESSED);
|
|
192 |
mChroma.setBackgroundColor(COLOR_UNPRESSED);
|
|
193 | 193 |
mTrans.setBackgroundColor(COLOR_UNPRESSED); |
194 | 194 |
mSink.setBackgroundColor(COLOR_UNPRESSED); |
195 | 195 |
mBubble.setBackgroundColor(COLOR_UNPRESSED); |
Also available in: Unified diff
Fix the 'Moving Effects' app