Revision 4fb1fc0d
Added by Leszek Koltunski over 3 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 Button mBackButton, mSolveButton; |
|
53 |
private ImageButton mBackButton; |
|
54 |
private Button mSolveButton; |
|
54 | 55 |
private boolean mSolving; |
55 | 56 |
private int mCurrentColor; |
56 | 57 |
private int[] mFaceColors; |
... | ... | |
229 | 230 |
params.leftMargin = margin; |
230 | 231 |
params.rightMargin = margin; |
231 | 232 |
|
232 |
mBackButton = new Button(act); |
|
233 |
final int icon = RubikActivity.getDrawable(R.drawable.ui_small_back,R.drawable.ui_medium_back, R.drawable.ui_big_back, R.drawable.ui_huge_back); |
|
234 |
|
|
235 |
mBackButton = new ImageButton(act); |
|
233 | 236 |
mBackButton.setLayoutParams(params); |
234 | 237 |
mBackButton.setPadding(padding,0,padding,0); |
235 |
mBackButton.setTextSize(TypedValue.COMPLEX_UNIT_PX, mButtonSize); |
|
236 |
mBackButton.setText(R.string.back); |
|
238 |
mBackButton.setImageResource(icon); |
|
237 | 239 |
|
238 | 240 |
mBackButton.setOnClickListener( new View.OnClickListener() |
239 | 241 |
{ |
Also available in: Unified diff
Progress with UI