Я пытаюсь добавить несколько кнопок в такой макет:
for( int i = 0; i < 10; i++ ) {
Button button = new Button( this );
button.setText( "" + i );
( ( LinearLayout )dialog.findViewById( R.id.Buttons ) ).addView( button );
}
Моя проблема в том, как сделать это программно для всех кнопок:
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:textSize="32dip" />
I ' Я смотрел LayoutParams, но он не выглядит полным. Например, как мне установить textSize на 32 dip?