最佳答案
已解决
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_centerVertical="true">
<Button android:id="@+id/open"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="Open"
android:layout_centerVertical="true"
/>
<CheckBox android:id="@+id/check"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/open"
/>
<TextView android:text="@+id/label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/label"
android:textSize="16px"
android:layout_toRightOf="@id/check"
/>
</RelativeLayout>
关于Android - Listview行内容的垂直对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9259793/