Revision 4fb1fc0d
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/states/RubikStateSolution.java | ||
---|---|---|
41 | 41 |
{ |
42 | 42 |
private static final int DURATION_MILLIS = 750; |
43 | 43 |
|
44 |
private Button mBackButton; |
|
45 |
private ImageButton mPrevButton, mNextButton; |
|
44 |
private ImageButton mPrevButton, mNextButton, mBackButton; |
|
46 | 45 |
private TextView mMovesText; |
47 | 46 |
private int[][] mMoves; |
48 | 47 |
private int mCurrMove, mNumMoves; |
... | ... | |
199 | 198 |
params.leftMargin = margin; |
200 | 199 |
params.rightMargin = margin; |
201 | 200 |
|
202 |
mBackButton = new Button(act); |
|
201 |
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); |
|
202 |
|
|
203 |
mBackButton = new ImageButton(act); |
|
203 | 204 |
mBackButton.setLayoutParams(params); |
204 | 205 |
mBackButton.setPadding(padding,0,padding,0); |
205 |
mBackButton.setTextSize(TypedValue.COMPLEX_UNIT_PX, mButtonSize); |
|
206 |
mBackButton.setText(R.string.back); |
|
206 |
mBackButton.setImageResource(icon); |
|
207 | 207 |
|
208 | 208 |
mBackButton.setOnClickListener( new View.OnClickListener() |
209 | 209 |
{ |
Also available in: Unified diff
Progress with UI