上の画像を考えてみましょう。
赤い線は画像ファイルの境界を示し、黒い線は画像の実際の「有用な」ピクセルを示し、白い = 透明です。
これらの画像をこのように配置するにはどうすればよいですか?
これが上記の方法に違いをもたらすかどうかはよくわかりませんが、各画像に基本的なアニメーションを実装することを計画しています (各画像をそれぞれの中心に対して回転させます)。
これは私がこれまでに持っているものです(3つの要素を中央に配置し、互いに重なり合っています):
<?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="fill_parent"
android:layout_centerInParent="true"
android:orientation="vertical" >
<ImageView
android:id="@+id/img_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription = "@string/img1"
android:src="@drawable/img1"
<ImageView
android:id="@+id/img_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/img2"
android:rotation="45"
android:src="@drawable/img2" />
<ImageView
android:id="@+id/img_3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/img3"
android:rotation="200"
android:src="@drawable/img3" />
ありがとう!
/e 1 - 画像を編集していただきありがとうございます 2 - 試行錯誤でこの問題を解決しました。とにかくありがとうございます!