내 ImageView
에 문제가 있습니다. 항상 ListView
에 마지막 아이콘이 항상 큰 경우를 제외하고는 아이콘이 모두 정확한 크기로 표시됩니다.이미지 뷰, 마지막 이미지는 항상 더 크다
아무도 도와 줄 수 있습니까? 다음과 같이 내가 이미지 뷰를 변경하는 경우
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<ImageView
android:id="@+id/imgIcon"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginRight="6dip"
android:src="@drawable/icon"
android:gravity="center_vertical" />
<TextView android:id="@+id/naam"
android:textSize="14sp"
android:textStyle="bold"
android:textColor="#FFFF00"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView android:id="@+id/waarde"
android:textColor="#ffffffff"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/naam"
android:layout_marginLeft="2dip"/>
</LinearLayout>
, 괜찮아요하지만 너무 큰 :
이android:layout_height="wrap_content"
편집 : 문제 해결, 내가 TextViews
자세한 내용. textView 텍스트 길이 또는 imageView 이미지 크기가 더 크기 때문에 마지막 뷰가 가능합니다. –