Add padding to startup button

Otherwise google games popup will prevent you from clicking it
This commit is contained in:
2023-04-03 20:34:36 +01:00
committed by pelya
parent a82486d0c7
commit 5bc1e861c5

View File

@@ -123,6 +123,8 @@ public class MainActivity extends Activity
DimSystemStatusBar.dim(null, getWindow());
Log.i("SDL", "libSDL: Creating startup screen");
Display display = getWindowManager().getDefaultDisplay();
int height = display.getHeight();
_layout = new LinearLayout(this);
_layout.setOrientation(LinearLayout.VERTICAL);
_layout.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));
@@ -139,6 +141,8 @@ public class MainActivity extends Activity
_btn.setEnabled(false);
_btn.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
_btn.setText(getResources().getString(R.string.device_change_cfg));
/* Add padding so play service popup doesnt block button */
_btn.setPadding(0, (int)(height * 0.1), 0, (int)(height * 0.1));
class onClickListener implements View.OnClickListener
{
public MainActivity p;