Revision d1ece1fc
Added by Leszek Koltunski 1 day ago
| src/main/java/org/distorted/main/MainSolvesPopup.java | ||
|---|---|---|
| 64 | 64 |
private void fillLayout(MainActivity act, JSONArray array) |
| 65 | 65 |
{
|
| 66 | 66 |
int textH = (int)(mSize*0.27f); |
| 67 |
int buttH = (int)(mSize*0.35f); |
|
| 68 | 67 |
|
| 69 | 68 |
LinearLayout.LayoutParams pV = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, mSize ); |
| 70 | 69 |
pV.setMargins(mMargin, mMargin, mMargin, 0); |
| src/main/res/layout/dialog_scrollable_solves.xml | ||
|---|---|---|
| 2 | 2 |
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | 3 |
android:id="@+id/updates_scroll" |
| 4 | 4 |
android:layout_width="match_parent" |
| 5 |
android:layout_height="match_parent"
|
|
| 5 |
android:layout_height="wrap_content"
|
|
| 6 | 6 |
android:background="?darkC" |
| 7 | 7 |
android:paddingTop="0dp" |
| 8 | 8 |
android:paddingBottom="0dp" |
| src/main/res/layout/dialog_solve_new_pane.xml | ||
|---|---|---|
| 11 | 11 |
<LinearLayout |
| 12 | 12 |
android:layout_width="0dp" |
| 13 | 13 |
android:layout_height="match_parent" |
| 14 |
android:orientation="horizontal"
|
|
| 15 |
android:layout_weight="1.0">
|
|
| 14 |
android:layout_weight="1"
|
|
| 15 |
android:orientation="vertical">
|
|
| 16 | 16 |
|
| 17 | 17 |
<TextView |
| 18 | 18 |
android:id="@+id/solves_pane_title" |
| 19 | 19 |
android:gravity="center_vertical|start" |
| 20 |
android:layout_width="match_parent"
|
|
| 20 |
android:layout_width="wrap_content"
|
|
| 21 | 21 |
android:layout_height="wrap_content" |
| 22 | 22 |
android:text="@string/new_solve" |
| 23 | 23 |
android:singleLine="true" |
| ... | ... | |
| 26 | 26 |
</LinearLayout> |
| 27 | 27 |
|
| 28 | 28 |
<LinearLayout |
| 29 |
android:layout_width="0dp"
|
|
| 29 |
android:layout_width="wrap_content"
|
|
| 30 | 30 |
android:layout_height="match_parent" |
| 31 | 31 |
android:orientation="vertical" |
| 32 |
android:layout_marginStart="8dp"
|
|
| 33 |
android:layout_weight="1.2">
|
|
| 32 |
android:layout_marginStart="20dp"
|
|
| 33 |
android:minWidth="120dp">
|
|
| 34 | 34 |
|
| 35 | 35 |
<Button |
| 36 | 36 |
android:id="@+id/solves_pane_play" |
| 37 | 37 |
android:layout_width="match_parent" |
| 38 | 38 |
android:layout_height="match_parent" |
| 39 | 39 |
android:backgroundTint="?veryDarkC" |
| 40 |
android:minHeight="0dp" |
|
| 41 |
android:minWidth="0dp" |
|
| 42 | 40 |
android:insetTop="0dp" |
| 43 | 41 |
android:insetBottom="0dp" |
| 44 | 42 |
android:text="@string/play"/> |
| src/main/res/layout/dialog_solve_old_pane.xml | ||
|---|---|---|
| 11 | 11 |
<LinearLayout |
| 12 | 12 |
android:layout_width="0dp" |
| 13 | 13 |
android:layout_height="match_parent" |
| 14 |
android:orientation="vertical"
|
|
| 15 |
android:layout_weight="1.0">
|
|
| 14 |
android:layout_weight="1"
|
|
| 15 |
android:orientation="vertical">
|
|
| 16 | 16 |
|
| 17 | 17 |
<TextView |
| 18 | 18 |
android:id="@+id/solves_pane_title" |
| 19 | 19 |
android:gravity="center_vertical|start" |
| 20 |
android:layout_width="match_parent"
|
|
| 20 |
android:layout_width="wrap_content"
|
|
| 21 | 21 |
android:layout_height="wrap_content" |
| 22 | 22 |
android:text="@string/old_solve" |
| 23 | 23 |
android:singleLine="true" |
| ... | ... | |
| 26 | 26 |
<TextView |
| 27 | 27 |
android:id="@+id/solves_pane_date" |
| 28 | 28 |
android:gravity="center_vertical|start" |
| 29 |
android:layout_width="match_parent"
|
|
| 29 |
android:layout_width="wrap_content"
|
|
| 30 | 30 |
android:layout_height="wrap_content" |
| 31 |
android:singleLine="true"/> |
|
| 31 |
android:ellipsize="none" |
|
| 32 |
android:singleLine="true"/> |
|
| 32 | 33 |
|
| 33 | 34 |
<TextView |
| 34 | 35 |
android:id="@+id/solves_pane_time" |
| 35 | 36 |
android:gravity="center_vertical|start" |
| 36 |
android:layout_width="match_parent"
|
|
| 37 |
android:layout_width="wrap_content"
|
|
| 37 | 38 |
android:layout_height="wrap_content" |
| 38 |
android:singleLine="true"/> |
|
| 39 |
android:ellipsize="none" |
|
| 40 |
android:singleLine="true"/> |
|
| 39 | 41 |
|
| 40 | 42 |
</LinearLayout> |
| 41 | 43 |
|
| 42 | 44 |
<LinearLayout |
| 43 |
android:layout_width="0dp"
|
|
| 45 |
android:layout_width="wrap_content"
|
|
| 44 | 46 |
android:layout_height="match_parent" |
| 45 | 47 |
android:orientation="vertical" |
| 46 |
android:layout_marginStart="8dp"
|
|
| 47 |
android:layout_weight="1.2">
|
|
| 48 |
android:layout_marginStart="20dp"
|
|
| 49 |
android:minWidth="120dp">
|
|
| 48 | 50 |
|
| 49 | 51 |
<Button |
| 50 | 52 |
android:id="@+id/solves_pane_delete" |
Also available in: Unified diff
Progress remembering solves.