0

ボタンクリックを使用してviewflipperを使用している場合、右から左に遷移します。しかし、ビューは少し内側に移動し、再び跳ね返ります。スプリング効果のようなものを想像してみてください。これは何かのバグだと思います。これはxmlコードです:

        left.xml
        <?xml version="1.0" encoding="utf-8"?>
        <shape xmlns:android="http://schemas.android.com/apk/res/android"
        android:shape="rectangle">
        <gradient
        android:startColor="#212121"
        android:centerColor="#404040"
        android:endColor="#212121"
        android:angle="270" />
        </shape>
         Viewflipper in main layout
         <ViewFlipper android:id="@+id/viewflipper" 
         android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:inAnimation="@anim/left"
        android:outAnimation="@anim/right"
        > 
4

0 に答える 0