commit 0b162619b66cacf5a799c31918f352e7cec5cec7
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Sat Nov 20 00:28:30 2021 +0100

    Add info pane: some progress.

diff --git a/src/main/java/org/distorted/screens/RubikScreenPlay.java b/src/main/java/org/distorted/screens/RubikScreenPlay.java
index 69c6cfd0..736b1271 100644
--- a/src/main/java/org/distorted/screens/RubikScreenPlay.java
+++ b/src/main/java/org/distorted/screens/RubikScreenPlay.java
@@ -29,6 +29,7 @@ import android.util.TypedValue;
 import android.view.Gravity;
 import android.view.LayoutInflater;
 import android.view.View;
+import android.view.ViewGroup;
 import android.widget.Button;
 import android.widget.GridLayout;
 import android.widget.ImageButton;
@@ -243,7 +244,8 @@ public class RubikScreenPlay extends RubikScreenBase
     int cubeWidth = bd.getIntrinsicWidth();
     int margin = (int)(width*RubikActivity.LARGE_MARGIN);
     mObjectSize = (int)(cubeWidth + 2*margin + 0.5f);
-    mMaxRowCount = (int)((height-2.0f*mUpperBarHeight)/mObjectSize);
+    mMaxRowCount = (int)((height-1.8f*mUpperBarHeight)/mObjectSize);
+    int layoutH = (int)(1.5f*mObjectSize);
 
     int viewID = mMaxRowCount<mRowCount ? R.layout.popup_object_withscroll : R.layout.popup_object_scrollless;
     View view = inflate( act, viewID, null);
@@ -256,9 +258,13 @@ public class RubikScreenPlay extends RubikScreenBase
     objectGrid.setRowCount(mRowCount);
 
     LinearLayout bottomLayout = view.findViewById(R.id.bottomLayout);
-    setupDetailsButton(act);
+    setupDetailsButton(act,layoutH);
     bottomLayout.addView(mDetailsButton);
 
+    ViewGroup.LayoutParams paramsB = bottomLayout.getLayoutParams();
+    paramsB.height = layoutH;
+    bottomLayout.setLayoutParams(paramsB);
+
     mObjectPopup = new PopupWindow(act);
     mObjectPopup.setFocusable(true);
     mObjectPopup.setContentView(view);
@@ -400,11 +406,10 @@ public class RubikScreenPlay extends RubikScreenBase
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-  void setupDetailsButton(final RubikActivity act)
+  void setupDetailsButton(final RubikActivity act, int width)
     {
-    int butWidth = 100;
     int icon = RubikActivity.getDrawable(R.drawable.ui_small_cube_solve_new,R.drawable.ui_medium_cube_solve_new, R.drawable.ui_big_cube_solve_new, R.drawable.ui_huge_cube_solve_new);
-    LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(butWidth,LinearLayout.LayoutParams.MATCH_PARENT);
+    LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(width,LinearLayout.LayoutParams.MATCH_PARENT);
     mDetailsButton = new TransparentImageButton(act, icon, TransparentImageButton.GRAVITY_MIDDLE, params);
 
     mDetailsButton.setOnClickListener( new View.OnClickListener()
