0
안드로이드에서 정확하게 이미지 크기를 조절하는 방법을 모르겠다. 640 * 125 픽셀의 iPhone 앱용 사진이 있습니다. 나는 이것을 안드로이드 애플 리케이션에서 사용할 필요가 있지만 정확한 스케일을 유지하는 방법을 알지 못합니다.Android 앱의 이미지 크기를 올바르게 조정하는 방법은 무엇입니까?
아래 이미지에서 ScaleType으로 'FitEnd'를 사용합니다.이 크기는 크기의 약 두 배가되어야합니다 (높이가 회색 그림의 가장 높은 부분만큼 높아야 함).
어떻게 수정합니까?
편집 : 포함 .XML
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ViewFlipper
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/buttonrow" >
<ViewFlipper
android:id="@+id/flipper"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<include
android:id="@+id/first"
layout="@layout/activity_events" />
<include
android:id="@+id/second"
layout="@layout/event_detail" />
</ViewFlipper>
<include
android:id="@+id/second"
layout="@layout/event_detail" />
</ViewFlipper>
<RelativeLayout
android:id="@+id/buttonrow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:scaleType="fitEnd"
android:src="@drawable/bottombar" />
</RelativeLayout>
</RelativeLayout>
을 제발 보여보다, 사진
하지 않을 경우 첫 번째 버전에 .xml 파일이 포함되어 있습니다. – OriginalUtter