CheckBox
및 ImageButton
을 포함하는 ListView
을 만들려고합니다. 이 각각의 ListView 항목의 레이아웃이이미지를 잘리지 않고이 ListView 항목을 어떻게 표시합니까?
입니다 : 지금까지, 나는 아래에 묘사되어 다음과 같은 작업을해야
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/widget32"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageButton
android:id="@+id/imgTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/datetime"
android:layout_alignBottom="@+id/rbOutput"
android:layout_alignParentRight="true" />
<CheckBox
android:id="@+id/rbOutput"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="[User Output]"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true" />
</RelativeLayout>
문제는 이미지가 상단과 클리핑 된 바닥을 가지고있다 떨어져서. 어떻게 각각의 ListView
항목에 세로로 가운데에 전체 이미지와 그 왼쪽에 checkbox
을 표시 할 수 있습니까?
너비를 wrap_content – njzk2