У меня есть ListActivity, объявленный так
public class SelectSiteActivity extends ListActivity
Затем у меня есть такой адаптер
public class SiteListAdapter extends ArrayAdapter<SimpleSiteModel>
, и мой макет выглядит так
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp"
android:background="#ffffff">
<TextView
android:id="@+id/siteName"
android:textColor="#000000"
android:text="Site Name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp" />
<ImageView
android:id="@+id/siteListMoreImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/expander_ic_minimized" />
</LinearLayout>
Как заставить ImageView
быть полностью нажатым вправо, чтобы они все были выровнены по вертикали, а затем TextView
занимает остальную часть ряда, и поэтому они оба выровнены вертикально по центру?