【发布时间】:2018-02-26 22:57:24
【问题描述】:
我希望表格布局中有 20 个按钮。按钮的当前代码是这样的(它们是重复的):
<Button
android:layout_height="wrap_content"
android:layout_width="10dp"
android:layout_marginRight="1dp"
style="?android:attr/buttonBarButtonStyle"
android:background="@color/colorGreen"
android:text="1" />
如何在代码中获得相同的内容。特别是我不知道样式元素在这里是如何工作的。
【问题讨论】:
标签: android android-layout user-interface