Hello All,
Continuing to have a a bit of fun with libraries, I'm making a GIF View available for your use.
The goal of GIF View is to allow you to embed animated GIF in your apps. As things stand, I couldn't find any over here so I wrapped up a popular library that does this for us. This library is authored by Flipboard guys and is very robust and efficient(or so its fame is). One of my main design goals is to make the GIF View as similar to the standard ImageView that you guys would have used in B4i as possible.
The usage is pretty simple:
Currently, the HHAnimatedGifView object doesn't support click events but am going to update this library so watch this space for updates. I need to do a bit of work so that it works exactly like the standard ImageView click event.
Attached is the zip containing the library files. Copy the .h and .a files in your local mac builder's Libs folder and copy the .xml file to your B4i Libraries folder on your Windows box. A sample project is also attached.
EDIT: Version 1.1 adds another method that takes as input the file name(without .gif) of the GIF file. This is required because loading gifs using the file:// URL doesn't work in release. See posts 7 onward for details
Cheers,
Harris
Continuing to have a a bit of fun with libraries, I'm making a GIF View available for your use.
The goal of GIF View is to allow you to embed animated GIF in your apps. As things stand, I couldn't find any over here so I wrapped up a popular library that does this for us. This library is authored by Flipboard guys and is very robust and efficient(or so its fame is). One of my main design goals is to make the GIF View as similar to the standard ImageView that you guys would have used in B4i as possible.
The usage is pretty simple:
B4X:
Dim hh As HHAnimatedGifView
hh.Initialize("gif")
iv = hh.GetAnimatedGifView("http://raphaelschaad.com/static/nyan.gif")
Page1.RootPanel.AddView(iv, 10,10, 300, 300)
Currently, the HHAnimatedGifView object doesn't support click events but am going to update this library so watch this space for updates. I need to do a bit of work so that it works exactly like the standard ImageView click event.
Attached is the zip containing the library files. Copy the .h and .a files in your local mac builder's Libs folder and copy the .xml file to your B4i Libraries folder on your Windows box. A sample project is also attached.
EDIT: Version 1.1 adds another method that takes as input the file name(without .gif) of the GIF file. This is required because loading gifs using the file:// URL doesn't work in release. See posts 7 onward for details
Cheers,
Harris
Attachments
Last edited: