【发布时间】:2011-11-30 20:43:56
【问题描述】:
我在屏幕上使用RelativeLayout。我将 RadioButtons 停靠在屏幕的右侧,我想将 TextViews 对齐到 RadioButtons 的左侧。
所以这里是我的文本视图的一个例子:
<TextView
android:id="@+id/editText2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/radioButton1"
android:gravity="right"
android:hint="@string/error1" />
我不确定它是否将它们对齐到 RadioButton 的中心而不是下方,因为这对我不起作用。我讨厌 Eclipse 的 (adt) xml gui,并在 xml 文件中进行编辑,因为我没有得到我想要的东西。有更简单的gui、xml编辑器吗?
【问题讨论】:
标签: android xml android-relativelayout