Revision 15846fe4
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/states/RubikStateSolving.java | ||
---|---|---|
152 | 152 |
mPrevButton = new ImageButton(act); |
153 | 153 |
mPrevButton.setLayoutParams(params); |
154 | 154 |
mPrevButton.setPadding(padding,0,padding,0); |
155 |
mPrevButton.setImageResource(R.drawable.left); |
|
156 |
mPrevButton.setVisibility(View.INVISIBLE); |
|
155 |
mPrevButton.setImageResource(R.drawable.cube_back); |
|
157 | 156 |
|
158 | 157 |
mPrevButton.setOnClickListener( new View.OnClickListener() |
159 | 158 |
{ |
... | ... | |
188 | 187 |
{ |
189 | 188 |
mCanPrevMove = false; |
190 | 189 |
pre.addRotation(this, axis, row, -angle, numRot*DURATION_MILLIS); |
191 |
|
|
192 |
if( numMoves==1 ) |
|
193 |
{ |
|
194 |
mPrevButton.setVisibility(View.INVISIBLE); |
|
195 |
} |
|
196 | 190 |
} |
197 | 191 |
else |
198 | 192 |
{ |
... | ... | |
211 | 205 |
public void addMove(int axis, int row, int angle) |
212 | 206 |
{ |
213 | 207 |
mMoves.add(new Move(axis,row,angle)); |
214 |
|
|
215 |
if( mMoves.size()==1 ) |
|
216 |
{ |
|
217 |
mPrevButton.setVisibility(View.VISIBLE); |
|
218 |
} |
|
219 | 208 |
} |
220 | 209 |
|
221 | 210 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
cube_back and cube_solve buttons.