안녕하세요 커스텀리스트뷰를 이용하여 앱을 만들고 있습니다.
이미지를 연속해서 두개 넣으려고하는데 다음과 같이 여백이 생기네요 ㅠ
xml 소스는
main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/exam"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/exam01"/>
<ListView
android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>
입니다 이미지도 첨부하겠습니다. 소중한 답변 기다리겠습니다. 감사합니다!
혹시몰라서 두번째 xml인 row.xml 소스도 적어두겠습니다.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@drawable/pattern" >
<ImageView
android:src="@drawable/icon"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_margin="10dp"/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:layout_marginBottom="10dp"
android:layout_marginRight="10dp"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/toptext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="3"
android:textSize="15dp"
android:textStyle="bold"
android:textColor="#000" />
<TextView
android:id="@+id/middletext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:textSize="10dp"
android:textColor="#666" />
<TextView
android:id="@+id/bottomtext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:textSize="10dp"
android:textColor="#000" />
</LinearLayout>
<TextView
android:id="@+id/list_view_row_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1dp"
android:textSize="11dp"
android:textColor="#666666" />
</LinearLayout>
</LinearLayout>
pattern 이미지 위아래로 투명한영역이 있나 확인해보시는게 좋을거 같군요.. 왠지... 있을거 같네용