Skip to content

Commit

Permalink
Merge pull request #6593 from kevlahnota/master2
Browse files Browse the repository at this point in the history
fix layout params
  • Loading branch information
kevlahnota authored Nov 18, 2024
2 parents 974e8b0 + fdfabfd commit 6d49bc7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions forge-gui-android/src/forge/app/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ private void displayMessage(View previousView, AndroidAdapter adapter, boolean e
row2.addView(button);
row2.setGravity(Gravity.CENTER);

TL.addView(row, new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT, TableLayout.LayoutParams.WRAP_CONTENT));
TL.addView(row2, new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT, TableLayout.LayoutParams.WRAP_CONTENT));
TL.addView(row, new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT));
TL.addView(row2, new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT));
TL.setGravity(Gravity.CENTER);
TL.setOnClickListener(v -> adapter.restart());
crossfade(TL, previousView);
Expand Down Expand Up @@ -377,9 +377,9 @@ public void onAnimationEnd(Animator animation) {
buttonRow.addView(button);
buttonRow.setGravity(Gravity.CENTER);

TL.addView(messageRow, new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT, TableLayout.LayoutParams.WRAP_CONTENT));
TL.addView(checkboxRow, new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT, TableLayout.LayoutParams.WRAP_CONTENT));
TL.addView(buttonRow, new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT, TableLayout.LayoutParams.WRAP_CONTENT));
TL.addView(messageRow, new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT));
TL.addView(checkboxRow, new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT));
TL.addView(buttonRow, new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT));
TL.setGravity(Gravity.CENTER);
crossfade(TL, forgeLogo);
}
Expand Down

0 comments on commit 6d49bc7

Please sign in to comment.