In short, I want to achieve the same behavior of any other static view, 
say, an ImageView during the animation. In other words I want that the 
animation is performed on the currently rendered portion of the WebView, 
without update.
This is what happens instead (you can use the scroll indicators to have an 
idea on where the original bounds were):



Also, since in this case the animation is a flip along the Y axis, the 
farther half of the WebView gets trimmed. I suspect that is a related 
problem.

I don't think the code would be useful here, anyway, here it is (relevant 
bits):

*MainActivity.java*

Animator animator = AnimatorInflater.loadAnimator(this, R.animator.rotate);
animator.setTarget(findViewById(R.id.web_view));
animator.start();

*activity_main.xml*

        <WebView
            android:id="@+id/web_view"
            android:layout_width="250dp"
            android:layout_height="250dp"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true" />

*rotate.xml*

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

    <objectAnimator
        android:duration="5000"
        android:propertyName="rotationY"
        android:valueFrom="0"
        android:valueTo="360" >
    </objectAnimator>
</set>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to