안드로이드 개발 질문/답변
(글 수 45,052)
<?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"
>
<ImageView
android:id="@+id/sumImage"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_marginTop="20dp"
android:src="@drawable/robott"
android:adjustViewBounds="true"
/>
<TextView
android:id="@+id/arrTv"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/sumImage"
android:layout_alignParentTop="true"
android:textSize="30sp"
android:textColor="#fffff023"
android:layout_marginLeft="15dp"
android:layout_marginTop="10dp"
/>
<TextView
android:id="@+id/arrTv2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/sumImage"
android:layout_below="@+id/arrTv"
android:layout_marginLeft="15dp"
android:layout_alignParentBottom="true"
/>
<ImageButton
android:id="@+id/imgBt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="20dp"
android:layout_marginTop="10dp"
android:src="@drawable/img_selector"
/>
</RelativeLayout>
레이아웃은 위와 같구요..
<?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"
>
<ListView
android:id="@+id/arr_lv"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</RelativeLayout>BaseAdapter 에 붙이 리스트뷰 입니다..
확인좀 해주세요..ㅠㅠ
리스트뷰 위에 버튼이 올라간듯한 느낌인데.요
근데 올라갈 이유가 없는데..사이즈를 보시면 아시겠지만.ㅠㅠ
이미지버튼을 빼면 , 리스트 클릭 동작은 합니다..
ps. 리스너 동작 아니구요 . 그냥 focus 동작 입니다..



