!7 import android.widget.*; import android.view.View; p { androidUI(r { LinearLayout ll = new LinearLayout(androidActivity()); ll.setOrientation(ll.HORIZONTAL); Button btn = aButton("TEST"); ll.addView(btn); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); params.gravity = 1; // center_horizontal btn.setLayoutParams(params); btn.setGravity(1); androidShow(aCenterAndSouth(new ASingleComponentPanel, ll)); //androidShow(new ASingleComponentPanel); }); }