我有一个LinearLayout有许多不同属性的按钮.想要有大约90个相同的布局与不同的文字



我有一个LinearLayout,其中有许多具有不同属性的按钮。但我想有大约90相同的布局与不同的文本和值。帮助我。谢谢。

我希望我的问题是正确的,你想有一个线性布局与90个不同的按钮?正确吗?如果是这样,那么这可能会有帮助(到你的布局文本编辑器并粘贴这个(复制和粘贴更多的按钮根据需要):

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center">
<Button
    android:id="@+id/b1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Button 1"/>
<Button
    android:id="@+id/b2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Button 2"/>
<Button
    android:id="@+id/b3"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Button 3"/>
// copy and  paste here more buttons
</LinearLayout>