Pulling image path from animation [duplicate]
I have a standard image animation for a simple banner. I'm trying to make it clickable so when the user clicks on the banner(a featured article list), it takes them to that article.
To achieve this in 开发者_Python百科our Android version, we have a runnable that allows us to change both the image resource and the reference link at the same time.
I have the animation set up like this:
mBannerImageView.animationImages = newArray;
mBannerImageView.animationDuration = 10;
mBannerImageView.animationRepeatCount = 0;
mBannerImageView.startAnimating;
Is there a way/how can I pull the resource name from the image view at the current time? My thought is to have the IBAction for it to pull the resource and direct you from there(matching the image name to something saved in our coredata). If there isn't a way, what would be the best approach for something of this nature?
Thanks for the help!
If you wish to set up image animation, so I have some html code which through you are easily generate image animation. The steps below show you how to create a image animation.
Create a simple animation and save the images as a series of JPG images.
Build an HTML page with the image displayed somewhere on the page using the tag.
Save the file as logo1.htm. Within the tag, include a tag that looks like this: With the HTML file still open, change the tag so that it displays the second frame of your animation, and change the tag to open logo3.htm and save the file as logo2.htm. Repeat this process for all frames of the animation.
精彩评论