내 안드로이드 앱에 3images를 넣었습니다. 첫 번째 이미지와 두 번째 이미지가 서로 아래에 있고 세 번째 이미지가 옆에 있습니다. 문제는 내가 서버 쪽 이미지와 크기가 다양하다는 것입니다. 화면에서 멋지게 보이게하려면 어떻게 구성해야합니까? 측면에 왼쪽, 3 일 1, 2 이미지 : 몇 가지로 편집3 이미지가 서로 나란히 있습니다.
<LinearLayout
android:paddingTop="5dp"
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_height="wrap_content">
<LinearLayout
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/image1"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@drawable/logo"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<View android:background="@android:color/white"
android:layout_width="2dp"
android:layout_height="match_parent"/>
<LinearLayout
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/image2"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@drawable/logo"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<View android:background="@android:color/white"
android:layout_width="2dp"
android:layout_height="match_parent"/>
<LinearLayout
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/image3"
android:src="@drawable/logo"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
스크린 샷을 살펴보고 싶었다.
https://s30.postimg.org/bs6m2vtfl/Screen_Shot_2017_02_07_at_4_55_25_PM.png
는 일부 스크린 샷을 공유 할 수 있습니까? – Krish
크기가 어떻게 다를 수 있습니까? 항상 3 개를 전체 화면에 표시하고 싶습니까? 당신은 시도 할 수 layout_weight 및 match_parent 사용해보십시오 (이미지를 스트레칭/shring 것입니다) – X3Btel
세 사진은 항상 800 * 1200 또는 1200 * 800 –