android按钮对齐方式,表格行中三个按钮的对齐方式Android

在线性布局内我的Actvity中有三个按钮。 在这里,我希望所有的按钮应该占据整个tablelayour同样。 所以我编码如下。表格行中三个按钮的对齐方式Android

......

android:id="@+id/tableLayout2"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:layout_weight="0"

android:stretchColumns="*">

android:id="@+id/tableRow5"

android:layout_width="wrap_content"

android:layout_height="wrap_content">

android:id="@+id/registerTwitter"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="Register Twitter"

android:gravity="left"/>

android:id="@+id/registerFB"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="Register FaceBook"

android:gravity="center"/>

android:id="@+id/clearCredentials"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="Clear Credentials"

android:layout_gravity="right" />

但是在这里,当我给代码如上我有三个按钮占据整个空间。

但对齐不正确。他们就像在漫天飞舞....

在哪里我犯的错误...

268f00e0b5980511bb5350cf38e211e5.png

还要注意上面的最后一个按键是不可见的充分的半隐半现.....

我在UI设计非常虚弱任何人都可以在建议....

+0

有点难以明白你是想有什么用。也许画一个你想要的图像,让我们看看它。 –

+0

@ prolink007 Craigy说我需要将所有按钮放在同一行。没有每个在空中飞行。 –

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值