I have more than 200 images, which I get from the API. I am using ViewFlipper to show slideshow. It has some fade In, Fade Out animations. It is working fine. My question is, is it good to use ViewFlipper with more than 200 images ? Won't it give memory issue ?
I also tried using SurfaceView, but I am not able to give FadeIn, FadeOut animation.
Or Is there any other way of displaying slideshow efficiently?
Related
I am trying to create one rotate animation just similar to tick/cross animations where a moving tick gets converted into a cross and vice versa while rotating. The tick/cross animation is possible by using Vector graphics but how do i implement the same by using .png images on any imageview? I have gone through a lot of threads like https://www.geeksforgeeks.org/how-to-make-check-tick-and-cross-animations-in-android/
but not getting any relevant one, so please help me out.
Code I am using to rotate the imageview:
imageview.animate().rotation(360f).start()
I'm using Fresco to load and display GIF and WEBP for my app.
I have a Gridlayout where I display a list of GIF and WEBP. Images are animating as intented but one thing I notice is that they are not animated at the same time. Some images wait for the other to finish animating before it starts its own animation which is not the way I expect it to be.
Does anyone experienced this before? How to fix it?
This should work out-of-the-box.
Take a look at the animation sample app, where we have 2 animations in parallel (and they animate at the same time).
How can I implement telegram app scaling ImageView effect?
telegram has rounded images for contacts. if I touch it in a amazing animation it gets scale and fill the screen. in animation transition image convert from circle to rectangle smoothly. I cannot find anyway to do this. I found libraries like shapedImageView but I have trouble with converting circle to rectangle smoothly.
my main challenge is the animation effect.
The source code of telegram is available on github, so you can check it and see, how they implemented that.
Maybe it is also possible to achieve this effect with material transition animations, if you want to open picture in another activity/fragment. Have a look at this library, for example: Material-Animations. I think you could try using shared elements.
I am using an Image Loaded which loads images based on requirment and since the images are big. I want to display an intermediate Spinning Image showing which would convey that the image is loading to the User.
I am displaying these images in the Viewpager.
We can not use a Gif image to display the animation and i wonder how it can be done.
P.S i am not looking for a Progress Dialog.
You could try doing a View Animation on the ImageView. Rotate is one of the included animations, and you can define it in XML.
Here's a Youtube Video from Google explaining it a little more.
I have 90 images with 480x526 dimension, ~20KB/image (i got from designer) and i need to play animation from images. First i tried AnimationDrawable but it is giving me out of memory error. After that I tired this solution:
Android: make animation from still images
It's working, but sometimes smooth sometimes lagging, (it's seems to be skip x pictures) Which is a best solution for animation? Thanks