【发布时间】:2015-12-26 09:30:14
【问题描述】:
有人可以帮我找出我的问题吗?在我桌子的最后一行,我有一个按钮,我希望它居中。下面是编码sn-p。
<TableRow>
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_gravity="center"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<Button
android:id="@+id/button1"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="Button"/>
</LinearLayout>
</TableRow>
- 为什么编码不起作用?
- 如何在按钮旁边放一个textView?
谢谢..
【问题讨论】: