[android-developers] Question about animation

2012-01-24 Thread Daniel Rindt
Hello, i would animate a VideoView what scales up and switch then to fullscreen. My code looks like: final VideoView videoView = (VideoView) findViewById(R.id.video_view); final ObjectAnimator x = ObjectAnimator.ofFloat(this, x, 0); x.setTarget(videoView); final ObjectAnimator y =

Re: [android-developers] Question about animation

2012-01-24 Thread Mark Murphy
I doubt that will work, as VideoView is backed by a SurfaceView, which doesn't play by the same rules. On Android 4.0, you could try replacing the VideoView with a MediaPlayer and a TextureView. TextureView can be animated, IIRC. On Tue, Jan 24, 2012 at 7:27 AM, Daniel Rindt

Re: [android-developers] Question about animation

2012-01-24 Thread Daniel Rindt
Thanks for your quick answer, i have API Level 11 available for the application, so the compatibility package may help here? Another idea is to render one frame of the video in a hidden fullscreen element, then shrink it down and animate it. I think poeple can neglect that the video is not

Re: [android-developers] Question about animation

2012-01-24 Thread Mark Murphy
On Tue, Jan 24, 2012 at 9:43 AM, Daniel Rindt daniel.ri...@googlemail.com wrote: i have API Level 11 available for the application, so the compatibility package may help here? No, sorry. Another idea is to render one frame of the video in a hidden fullscreen element, then shrink it down and

Re: [android-developers] Question About animation

2010-06-30 Thread Mark Murphy
On Wed, Jun 30, 2010 at 4:02 AM, Romain Guy romain...@android.com wrote: You simply need to use setFillAfter(true). That only works if the widget is non-interactive. Otherwise, setFillAfter() moves the pixels, but the hot spots for interaction remain at the old location. For interactive

[android-developers] Question about animation

2009-04-17 Thread Mike Baroukh
Hi. Hi have an absolute layout with pictures. Only 2 pictures are show simultaneously. Others are on the layout, but out of view. I wan't on user click to show others picture. For this, I do an animation to translate the layer. For translation from right to left, it works correctly : an other