Revision 23ac2462
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/states/RubikStateSolver.java | ||
---|---|---|
50 | 50 |
{ |
51 | 51 |
private static Bitmap[] mBitmap; |
52 | 52 |
private ImageButton[] mColorButton; |
53 |
private ImageButton mBackButton; |
|
54 |
private Button mSolveButton; |
|
53 |
private ImageButton mBackButton, mSolveButton; |
|
55 | 54 |
private boolean mSolving; |
56 | 55 |
private int mCurrentColor; |
57 | 56 |
private int[] mFaceColors; |
... | ... | |
208 | 207 |
params.leftMargin = margin; |
209 | 208 |
params.rightMargin = margin; |
210 | 209 |
|
211 |
mSolveButton = new Button(act); |
|
210 |
final int icon = RubikActivity.getDrawable(R.drawable.ui_small_solve,R.drawable.ui_medium_solve, R.drawable.ui_big_solve, R.drawable.ui_huge_solve); |
|
211 |
|
|
212 |
mSolveButton = new ImageButton(act); |
|
212 | 213 |
mSolveButton.setLayoutParams(params); |
213 | 214 |
mSolveButton.setPadding(padding,0,padding,0); |
214 |
mSolveButton.setTextSize(TypedValue.COMPLEX_UNIT_PX, mButtonSize); |
|
215 |
mSolveButton.setText(R.string.solve); |
|
215 |
mSolveButton.setImageResource(icon); |
|
216 | 216 |
|
217 | 217 |
mSolveButton.setOnClickListener( new View.OnClickListener() |
218 | 218 |
{ |
Also available in: Unified diff
Progress with UI