안드로이드 개발 질문/답변
(글 수 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="100dp"
>
<ImageView
android:id="@+id/iconImageView"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
></ImageView>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:orientation="vertical"
android:layout_toRightOf="@+id/iconImageView"
>
<TextView
android:id="@+id/upperTextView"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="@color/gray"
android:layout_weight="3"
android:layout_gravity="center_vertical|fill_vertical|fill"
></TextView>
<TextView
android:id="@+id/lowerTextView"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="test"
></TextView>
</LinearLayout>
</RelativeLayout>
- ListView의 Row에 쓰이는 레이아웃 입니다
보시다 시피 레이아웃의 높이를 100dp로 고정 시켜 놓고 그 속에 Child 뷰들이 그 높이에 맞춰 드가길 원했으나 실제로 실행 시켜 보면은
높이가 wrap_content처럼 조절 됩니다. 즉, 차일드 뷰 중에거 가장 큰 높이를 가진 뷰의 높이로 조정 됩니다
제가 원하는 로우형식과 현재 상황을 그림파일로 첨부합니다.
도대체 어디가 문제 인가요 ㅠ.ㅠ 이거 때문에 몇일을 고민 합니다
제발 도와 주세요 ㅠ.ㅠ
(물론 차일드 뷰의 높이를 전부 100dp로 지정하는 방법이 있습니다만, 제가 원하는 방법이 아닙니다)



