如何让一个线性布局中的三个按钮均匀的排列?

ynduanlian ynduanlian 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >

<Button
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="简单"
android:layout_margin="10px" />

<Button
android:id="@+id/button2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="中等"
android:layout_margin="10px" />

<Button
android:id="@+id/button3"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="较难"
android:layout_margin="10px" />

</LinearLayout>

试了半天,不知道要怎么设置属性才能让三个按钮在一条线上均匀的分布?
...全文
评论 5
收藏 已收藏
分享
返回顶部
ynduanlian
Android 80,490 成员 91,375 内容