LinearLayout.LayoutParams buttonParams = новый LinearLayout.LayoutParams (ViewGroup.LayoutParams.MATCH_PARENT, 100); buttonParams.gravity = Gravity.CENTER;