create animation in android - android

I need to create an animation in android,i have one fixed image in the screen, i need to add another image over the old image in 5 to 10 second interval.
i have searched and i found something like this
how-to-change-images-on-imageview-after-some-interval
but here they have used the array list of images but i need to add only single image within some interval.
Could somebody help me #Thanks

Related

Adding more than one independent images using a single image view

I am trying to pick images from the gallery in my android application and I want to place them above each other,
but the problem is that I want to use only a single image view.
Does anyone know the code for that?
Thanks for your help.

Showing thousands of ImageViews in android

I need to load a lots of images (3500 images) to my android app (and then I will rotate with each of them in the application). But when I load each of them separately (creating new ImageView which I add to the array) then it takes about 10 seconds to load. I have tried to inflate them from XMLs since there is only 8 different images which I use but no visible changes.
I would be really grateful for any advice how to load it faster.
EDIT: I am creating a grid of hexagons, each hexagon is consisted of 6 triangles (this way I need to store only 8 different triangle images instead of storing image for each different hexagon). After the grid is loaded user can resize it. I need to load all the grid cell at once because there are many constrains between them. Also only operation I will do with the hexagons is to rotate them.
You can use cashing for bitmap images, the following tutorial link is helpful.
http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html

Image Circulation in android

I have created a app to find the hotels, I am using a slider to show all images related to the hotel's. But I want to get the first image after the last slide in circular fashion.
Get idea through below Picture, Because I want to achieve it in same way.
Sliding SlidingSlidingSliding
All image must be in circular fashion with no end point for image in gallery while sliding.
Please have a look at the below library called InfiniteScrollView.
I think this will do exactly what you are looking for.
https://github.com/satansly/InfiniteScrollView

Draw on an image

Here is my problem. I am currently working on an android application that is handling images. When the application first starts, I have a list of categories (Food, Transport, Emergency ...). So I click on a category for example Food. I find myself in the second activity where I have subcategories (Fruit, Meat, Fish ...). So let's say I click on Fruit. I end up in the third activity which displays images (like in a gridview) of different fruits. I can either click on a fruit to zoom it or I can drag & drop it to the bottom of the activity where I have 3 dropzone that are here for me to create a sequence of images and save it.
So back to my problem, when I zoom on an image I want to be able to add a drawing feature. I want to be able to draw on the image when I click on the menu button of the phone and when I select "Draw". I tried to draw on an image but the drawing lines are always going underneath the pictures so I can't see them. Besides, I want to be able to save the image afterwards and I can't seem to find a way to my problem.
Could someone help me please?
I tried using BitmapFactory but it got me nowhere...
Thank you
Try to use search:
How to draw text On image?
How to draw a Line in ImageView on Android?
https://stackoverflow.com/search?q=android+Draw+on+an+image

Adding images into array of an Android Application

I want to display the images in my Application added to my "raw" folder of the Eclipse as it gets started.
How do I add those particular images to an Array and rotate the loop until all the Images are displayed?
Can anyone help me for this?
Check out Android's frame animation. I think it does exactly what you want.
http://developer.android.com/guide/topics/graphics/2d-graphics.html#frame-animation

Categories

Resources