Skip to content

Commit

Permalink
Fixed trophy being shifted to the side on some tablets
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamuno committed Oct 9, 2020
1 parent 7c5fc79 commit 4cfdee5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig
TextView viewName ;
RatingBar ratingBar;
SaveLoadStatistics statistics = new SaveLoadStatistics(this);
WinDialog dialog = null;
WinDialog dialog;
private boolean gameSolved = false;
private boolean startGame = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void setParam(String timeString, String hintString, boolean isNewBestTime

@Override
protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

((TextView)findViewById(R.id.win_hints)).setText(hintString);
Expand Down
10 changes: 0 additions & 10 deletions app/src/main/res/drawable-night-v21/ic_trophy_black_48dp.xml

This file was deleted.

10 changes: 0 additions & 10 deletions app/src/main/res/drawable-v21/ic_trophy_black_48dp.xml

This file was deleted.

7 changes: 5 additions & 2 deletions app/src/main/res/layout/win_screen_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
android:layout_width="fill_parent" android:layout_height="320dp"
android:orientation="vertical"
android:background="?attr/lightestBackGround"
android:layout_gravity="center">
android:layout_gravity="center"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true">

<LinearLayout
android:layout_width="275sp" android:layout_height="275sp"
android:layout_width="275sp"
android:layout_height="275sp"
android:weightSum="5"
android:background="@drawable/ic_trophy_black_48dp"
android:orientation="horizontal"
Expand Down

0 comments on commit 4cfdee5

Please sign in to comment.