Androidアプリケーションを作成する必要があります。どのアプリがすでに iPhone アプリケーションとして開発されているか。iPhoneアプリケーションに使用されるすべての画像があります。
私のアプリケーションでは、最初の画面で 2 つの画像を設定する必要があります。それらは 640 x 684 と 640 x236 です
私のエミュレータのサイズは wvga800 です。(440*800) しかし、エミュレーター経由でアプリケーションを実行すると. 最初の画像はストレッチとして表示され、2 番目の画像が重ねられています。
相対レイヤーを使用しました。ここにxmlコードがあります。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="fitCenter"
android:contentDescription="@string/main_image"/>
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/presshereclick"
android:visibility="invisible"
android:contentDescription="@string/main_image"/>
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:adjustViewBounds="true"
android:contentDescription="@string/main_image"
android:src="@drawable/presshere" />
</FrameLayout>
</RelativeLayout>
画面サイズ (440*800) に合わせて画像のサイズを変更する予定ですが、これはコーディング側から処理できると思います。これは、Androidでの3日目です。
これを解決するのを手伝ってください。
前もって感謝します..