[英]How to center 2 EditTexts one on the right of the other in Android?
[英]Android layout: one on left, one on right, one on center?
我需要這樣的布局:
button1在左側,button3在右側,button2在中間。 並且所有這些都在垂直方向的中間。
如何執行呢?
使用RelativeLayout
。
按鈕#1具有
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
。 按鈕2:具有
android:layout_centerInParent="true"
。 #3按鈕具有
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.