Revision b45b986a
Added by Leszek Koltunski 8 months ago
src/main/java/org/distorted/main/MainScrollGrid.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package org.distorted.main; |
11 | 11 |
|
12 |
import android.app.Activity; |
|
13 | 12 |
import android.util.DisplayMetrics; |
14 | 13 |
import android.view.View; |
15 | 14 |
import android.widget.GridLayout; |
... | ... | |
29 | 28 |
|
30 | 29 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
31 | 30 |
|
32 |
void createGrid(final Activity act, int windowWidth) |
|
31 |
void createGrid(final MainActivity act, int windowWidth)
|
|
33 | 32 |
{ |
34 | 33 |
int numObjects = RubikObjectList.getNumObjects(); |
35 | 34 |
int rowCount = (numObjects + NUM_COLUMNS-1) / NUM_COLUMNS; |
... | ... | |
70 | 69 |
|
71 | 70 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
72 | 71 |
|
73 |
void updateGrid(final Activity act, int scrW) |
|
72 |
void updateGrid(final MainActivity act, int scrW)
|
|
74 | 73 |
{ |
75 | 74 |
act.runOnUiThread(new Runnable() |
76 | 75 |
{ |
Also available in: Unified diff
Major progress with version 2.0.0.