Revision 4ed3823a
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/uistate/RubikStateMain.java | ||
---|---|---|
31 | 31 |
import org.distorted.magic.R; |
32 | 32 |
import org.distorted.magic.RubikActivity; |
33 | 33 |
|
34 |
import static android.view.View.INVISIBLE; |
|
35 |
|
|
36 | 34 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
37 | 35 |
|
38 | 36 |
public class RubikStateMain extends RubikStateAbstract |
... | ... | |
82 | 80 |
|
83 | 81 |
DisplayMetrics metrics = act.getResources().getDisplayMetrics(); |
84 | 82 |
float scale = metrics.density; |
85 |
int size = (int)(60*scale + 0.5f); |
|
86 | 83 |
int padding = (int)( 5*scale + 0.5f); |
87 | 84 |
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,LinearLayout.LayoutParams.MATCH_PARENT); |
88 | 85 |
|
Also available in: Unified diff
Beginnings of the 3x3x3 Solver and Pretty Patterns.