How to add multiple buttons to a row dynamically in Android
问题 Does anybody know how to add multiple buttons to a table row dynamically in Android? 回答1: You can try this and see if it's what your are looking for. main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layout" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <Button android:text="Button" android:id="@+id/button1" android:layout_height="wrap_content"