0
리스트 뷰의 항목을 정렬하고 나는 다음과 같은 구조를 가지고 싶다 :안드로이드 : 나는 목록보기를
나는 몇 가지 문제가있다 : 텍스트가 이미지와 정렬되지 않은, 오른쪽 이미지를 일부 항목에서 사라지고, 2 줄이 보이지 않습니다. 제발 도와주세요. 게시
새로운 코드 :
편집
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="@drawable/listview_naranja"
android:orientation="horizontal"
android:padding="5dip" >
<LinearLayout
android:id="@+id/thumbnail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginRight="5dip"
android:padding="3dip"
android:paddingTop="5dip" >
<ImageView
android:id="@+id/imagenListview"
android:layout_width="100dip"
android:layout_height="100dip" />
</LinearLayout>
<TextView
android:id="@+id/textoListviewNombre"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/thumbnail"
android:layout_toRightOf="@+id/thumbnail" />
<TextView
android:id="@+id/textoListviewTipo"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/textoListviewNombre"
android:layout_marginTop="1dip"
android:layout_toRightOf="@+id/thumbnail" />
<ImageView
android:id="@+id/imagenVisto"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:paddingLeft="3dp"
android:paddingRight="3dp" />
<ImageView
android:id="@+id/imagenVisto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true" />
</RelativeLayout>
감사 : 이 내 코드입니다.
이것은 사용자 정의 목록보기를 생성하여 구현 될 것이다는 –
은 예, 사용자 지정 목록보기를 원하는 내 textoListviewNombre 내 썸네일로 alignTop하지 내 imagenVisto 내 썸네일에 표시 – user3231711