1

ここに画像の説明を入力gridView で子要素をアニメーション化しようとしています。すべてがうまくいきますが、一番上の行は、背景の上に翻訳/描画されるのではなく、背景の下から翻訳されているようです。

gridView の xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" 
android:background="#000000"> 

 <GridView 
    android:id="@+id/gameButton"
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content"
    android:numColumns="4"
    android:layout_centerInParent="true"
    android:gravity="center_horizontal"/>

各要素で使用されるアニメーション

<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">

  <translate
    android:fromYDelta="-25%p"
    android:toYDelta="0%p"
    android:duration="700"
    android:fillAfter="false"
    android:startOffset="50"
    android:interpolator="@android:anim/accelerate_decelerate_interpolator" />

</set>

黒い背景に描かれているのではなく、どういうわけか背景の下にあります

4

0 に答える 0