i want to put .GIF(Animated) image into the imagebutton into android is it is possible? i am using android sdk 1.6 (can it also possible into the image view) i've tried but image just displayes but without animation.. thanks in advance Pragna
Gif is a supported format but I don't think that the animated is.
Here doesn't really say.
Related
I'm working CardView.Everything workng perfect but i have one problem(question)
I only have png image.How i can solve my problem? is it a possible to use .9.png in my cardivew?
Sure You can use .9.png format Or use this link for making 5 diffrent screen size image for your app. LInk:
Link
I am working on camera application in android and have a page with a camera preview on half of the screen and an image gallery as shown in image below. Right now, i am using gridview to show image thumbnails in gallery. But, the problem is, i can't make the gallery scrollable(horizontally). I also found that horizontal scrolling is not supported in grid view.
The screenshot i provided is from iphone app and that is working fine. I used uicollectionview in iphone app for the same.
I can't find anything like uicollectionview in android.
Any help will be appreciated. Thanks in advance.
Or you can use additional plugins like this
You could take a look at Gallery if that is what you meant. Just take not that it recently got deprecated and you should either use a HorizontalScrollView or a ViewPager and programmatically add the items.
I use ImageSpan to add image into TextView,but It can't animate.
animated GIF is not yet supported in Android.
http://code.google.com/p/android/issues/detail?id=3422
You will need to use multiple images and use animation to achieve it.
Code from the API
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/animation/index.html
Check these Links too:
http://www.youtube.com/watch?v=b1e17InAx_w
http://developingthedream.blogspot.com/2011/01/android-canvas-frame-by-frame-animation.html
http://developerlife.com/tutorials/?p=343
Animated Gif not supported for more standard supported file visit here
and For animated image have look at this code
Can we show a animated gif image in android by using VideoView? If possible please let me know how it is possible? Else how can I show a gif image in android?.
Did you take a look at this. This might be what you are looking for.
I want to have a cartoonish stork fly across my screen (slowly flapping his wings) and land on a post. I have an artist that can draw it for me and said it could be a gif file. I'm guessing that means it would be like a cartoon movie. Is this easy to put in my app or do I need to do something entirely different? My only experience with any graphics in android is displaying a picture using ImageView.
Thanks for any help.
Android does not deal with animated GIFs well. You apparently can play one back using VideoView, but I have not tried that. You can also set up an AnimationDrawable resource (an XML container for the frames of your animation).
This seems to do what you want:
http://www.androlib.com/android.application.com-ideal-imageviewer-EzCz.aspx