layout_weight 태그는 폭을 기준으로 폭을 설정하는 데 도움이됩니다. 신장 조절과 같은 것이 있습니까? 초보자가 도와주세요. :)화면 높이에 상대적으로 이미지 뷰의 높이를 설정할 수있는 방법이 있습니까
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="0dip" android:layout_gravity="top"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="5dp"
android:paddingLeft="10dp"
android:paddingTop="5dp"
>
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="left|top"
android:scaleType="centerCrop"
android:src="@drawable/ic_launcher" />
<ImageView
android:id="@+id/imaget"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="left|top"
android:layout_weight="1"
android:scaleType="centerCrop"
android:src="@drawable/ic_launcher" />
</LinearLayout>
</TableLayout>
은 모두 이미지 뷰 – Opiatefuchs
무엇 × 2 레이아웃 – user3407787
무게 = 0.25로 설정 커야한다보기를 원한다면 내가 = 무게로 작은 하나, 어떻게해야 0.75 – Opiatefuchs