2
내가 가지고 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
을 오른쪽으로 끝까지 밀어 넣으면 모두 수직으로 정렬됩니다. cally 다음에 TextView
이 나머지 행을 차지하므로 둘 다 중앙에서 수직으로 정렬됩니까?
'android : gravity = "center_vertical"'이었지만 다른 모든 것은 챔피언처럼 작동했습니다. – Josh
ImageView 태그에 실제로 적용된 것은'android : layout_gravity = "center_vertical"입니다. –