Fixed trophy being shifted to the side on some tablets
This commit is contained in:
parent
7c5fc7996b
commit
4cfdee5eab
5 changed files with 6 additions and 24 deletions
|
@ -95,7 +95,7 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig
|
||||||
TextView viewName ;
|
TextView viewName ;
|
||||||
RatingBar ratingBar;
|
RatingBar ratingBar;
|
||||||
SaveLoadStatistics statistics = new SaveLoadStatistics(this);
|
SaveLoadStatistics statistics = new SaveLoadStatistics(this);
|
||||||
WinDialog dialog = null;
|
WinDialog dialog;
|
||||||
private boolean gameSolved = false;
|
private boolean gameSolved = false;
|
||||||
private boolean startGame = true;
|
private boolean startGame = true;
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,6 @@ public class WinDialog extends Dialog {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
((TextView)findViewById(R.id.win_hints)).setText(hintString);
|
((TextView)findViewById(R.id.win_hints)).setText(hintString);
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="192dp"
|
|
||||||
android:height="192dp"
|
|
||||||
android:viewportWidth="192"
|
|
||||||
android:viewportHeight="192">
|
|
||||||
<path
|
|
||||||
android:fillColor="?attr/standardVectorGraphic"
|
|
||||||
android:name="Shape 1"
|
|
||||||
android:pathData="m48 32v56h-16v-56zm112 0v56h-16v-56zm-144 -16c0 0 0 1.52 0 4.13c0 15.29 0 67.88 0 67.88c0.06 0.25 0.13 0.25 0.13 0.25c0 7.53 8.9 13.72 14.75 15.45c0.1 0.03 0.2 0.06 0.3 0.09c0.11 0.03 0.22 0.06 0.32 0.08l0.5 0.12l18.22 0.02c0.01 0.07 0.02 0.14 0.03 0.21c2.48 19.1 19.25 29.53 37.76 31.8c0 4.69 0 15.96 0 16.91h-0c-12.93 2.24 -24 9.94 -24 23.06h64c-0 -13.22 -11.07 -20.9 -24 -23.09h-0v-16.92c0.05 -0.01 0.1 -0.01 0.14 -0.02c18.93 -2.45 35.9 -13.31 37.45 -32.03c0.01 -0.08 3.5 -0.1 7.48 -0.1c5.28 0 11.42 0.04 11.42 0.04c0.11 -0.03 0.21 -0.05 0.32 -0.08c5.84 -1.6 15.05 -7.88 15.05 -15.54l0.13 0.75c0 0 0 -63.25 0 -72c0 -0.65 0 -1 0 -1l-32.5 0.13c-0.11 0.03 -0.21 0.05 -0.32 0.08c-0.12 0.03 -0.25 0.07 -0.37 0.11c-5.85 1.76 -14.68 7.93 -14.68 15.43h-64.25c0 -7.66 -9.21 -13.94 -15.05 -15.54c-0.11 -0.03 -0.22 -0.06 -0.32 -0.08l-32.5 -0.13z" />
|
|
||||||
</vector>
|
|
|
@ -1,10 +0,0 @@
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="192dp"
|
|
||||||
android:height="192dp"
|
|
||||||
android:viewportWidth="192"
|
|
||||||
android:viewportHeight="192">
|
|
||||||
<path
|
|
||||||
android:fillColor="?attr/standardVectorGraphic"
|
|
||||||
android:name="Shape 1"
|
|
||||||
android:pathData="m48 32v56h-16v-56zm112 0v56h-16v-56zm-144 -16c0 0 0 1.52 0 4.13c0 15.29 0 67.88 0 67.88c0.06 0.25 0.13 0.25 0.13 0.25c0 7.53 8.9 13.72 14.75 15.45c0.1 0.03 0.2 0.06 0.3 0.09c0.11 0.03 0.22 0.06 0.32 0.08l0.5 0.12l18.22 0.02c0.01 0.07 0.02 0.14 0.03 0.21c2.48 19.1 19.25 29.53 37.76 31.8c0 4.69 0 15.96 0 16.91h-0c-12.93 2.24 -24 9.94 -24 23.06h64c-0 -13.22 -11.07 -20.9 -24 -23.09h-0v-16.92c0.05 -0.01 0.1 -0.01 0.14 -0.02c18.93 -2.45 35.9 -13.31 37.45 -32.03c0.01 -0.08 3.5 -0.1 7.48 -0.1c5.28 0 11.42 0.04 11.42 0.04c0.11 -0.03 0.21 -0.05 0.32 -0.08c5.84 -1.6 15.05 -7.88 15.05 -15.54l0.13 0.75c0 0 0 -63.25 0 -72c0 -0.65 0 -1 0 -1l-32.5 0.13c-0.11 0.03 -0.21 0.05 -0.32 0.08c-0.12 0.03 -0.25 0.07 -0.37 0.11c-5.85 1.76 -14.68 7.93 -14.68 15.43h-64.25c0 -7.66 -9.21 -13.94 -15.05 -15.54c-0.11 -0.03 -0.22 -0.06 -0.32 -0.08l-32.5 -0.13z" />
|
|
||||||
</vector>
|
|
|
@ -4,10 +4,13 @@
|
||||||
android:layout_width="fill_parent" android:layout_height="320dp"
|
android:layout_width="fill_parent" android:layout_height="320dp"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:background="?attr/lightestBackGround"
|
android:background="?attr/lightestBackGround"
|
||||||
android:layout_gravity="center">
|
android:layout_gravity="center"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_centerHorizontal="true">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="275sp" android:layout_height="275sp"
|
android:layout_width="275sp"
|
||||||
|
android:layout_height="275sp"
|
||||||
android:weightSum="5"
|
android:weightSum="5"
|
||||||
android:background="@drawable/ic_trophy_black_48dp"
|
android:background="@drawable/ic_trophy_black_48dp"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
|
|
Loading…
Reference in a new issue