1

1 つのビューを回転させたい (1 本のように)。次のようなコード:

<RelativeLayout
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_centerInParent="true"
  android:rotationY="30" >

     <ImageView
            android:id="@+id/bookIcon"
            android:layout_width="85dp"
            android:layout_height="110dp"
            android:layout_centerInParent="true"
            android:scaleType="centerCrop"
            android:src="@drawable/icon_book_large" />
     <View
            android:layout_width="15dp"
            android:layout_height="110dp"
            android:layout_centerInParent="true"
            android:layout_toLeftOf="@+id/bookIcon"
            android:background="#232323"
            android:rotationY="-90" />
</RelativeLayout>

"View" --- ブックの側面として使用されます
"ImageView" --- ブックのアイコンとして使用されます

1冊の本を選択したときに選択された効果を作りたい.効果は、本が右に30度回転することです.「回転Y」値を設定したため、「ビュー」(左側)が表示されません.
理由はわかりません。

ありがとうございます。

4

0 に答える 0