Revision 7bb30586
Added by Leszek Koltunski 7 months ago
src/main/java/org/distorted/dialogs/RubikDialogScoresView.java | ||
---|---|---|
21 | 21 |
import android.widget.TextView; |
22 | 22 |
|
23 | 23 |
import org.distorted.main.R; |
24 |
import org.distorted.main_old.RubikActivity; |
|
25 | 24 |
import org.distorted.external.RubikScores; |
26 | 25 |
|
27 | 26 |
import static org.distorted.external.RubikNetwork.MAX_PLACES; |
... | ... | |
30 | 29 |
|
31 | 30 |
public class RubikDialogScoresView extends FrameLayout |
32 | 31 |
{ |
32 |
private static final float SCORES_LEVEL_TEXT = 0.035f; |
|
33 |
private static final float SCORES_ITEM_TEXT = 0.025f; |
|
34 |
|
|
33 | 35 |
private LinearLayout mLayout=null; |
34 | 36 |
private int mHeight; |
35 | 37 |
|
... | ... | |
72 | 74 |
TextView text = levelLayout.findViewById(R.id.scoresScrambleTitle); |
73 | 75 |
text.setText(title); |
74 | 76 |
|
75 |
int size = (int)(mHeight*RubikActivity.SCORES_LEVEL_TEXT);
|
|
77 |
int size = (int)(mHeight*SCORES_LEVEL_TEXT); |
|
76 | 78 |
text.setTextSize(TypedValue.COMPLEX_UNIT_PX, size); |
77 | 79 |
|
78 | 80 |
Resources res = act.getResources(); |
... | ... | |
88 | 90 |
String theirTime; |
89 | 91 |
int theirCountryID; |
90 | 92 |
|
91 |
int height = (int)(mHeight* RubikActivity.SCORES_ITEM_TEXT);
|
|
93 |
int height = (int)(mHeight*SCORES_ITEM_TEXT); |
|
92 | 94 |
int white = res.getColor(R.color.white); |
93 | 95 |
int red = res.getColor(R.color.red); |
94 | 96 |
boolean equals; |
Also available in: Unified diff
Remove all old UI 1.0 classes