0
请查看下面的Button12s。它只是一个带有文字“GO”的按钮,但按钮很宽。我希望它和文本一样宽。
如果有问题,它嵌套在表格中。无法更改Eclipse中的按钮宽度(android)
<TableRow
android:id="@+id/TableRow1_1"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<CheckBox
android:id="@+id/CheckBox25"
android:layout_width="fill_parent"
android:layout_height="25dp"
android:text="@string/_3x12s" />
<Button
android:id="@+id/Button12s"
android:minHeight="1dp"
android:minWidth="1dp"
android:onClick="starttimer"
android:text="@string/_GO" />
链接图像(我不能嵌入尚未):http://i.stack.imgur.com/nvFl7.png
没有变化。 [图像](http://oi40.tinypic.com/15hy83n.jpg)“<按钮 \t机器人:ID = “@ + ID/Button12s” \t机器人:了minHeight = “1DP” \t机器人:layout_width =” wrap_content“ \t android:onClick =”starttimer“ \t android:text =”@ string/_GO“/>' – eibwen 2013-05-03 01:17:19
奇怪的是,我只是在我的xml文件上做了同样的工作。我将不得不更多地使用它。 – HalR 2013-05-03 01:22:13
如果你在意,这里是整个文件,也许有一些我错过了。 [链接](https://docs.google.com/document/d/1lyTl-NPskPKjjYDZeCFl6gkTjClh213xdQzFlLaEy18/edit?usp=sharing) – eibwen 2013-05-03 01:25:47