<linearLayout androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" > <button androID:ID="@+ID/button1" androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:text="button" /> <button androID:ID="@+ID/button2" androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:text="button" /></linearLayout>
如果您想要将layout.give中的两个按钮设为两个按钮的重量.
总结以上是内存溢出为你收集整理的如何在Android中将两个按钮放在同一行全部内容,希望文章能够帮你解决如何在Android中将两个按钮放在同一行所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)