Jul 11, 2014 Replies: 8 Introduction This is a DesignerCustomView control which is based on the native android movie view and will allow you to display animated gifs (tranparent ones as well). How to use 1. Extract the AnimatedGifView jar + xml to the B4A libraries folder. 2. Open the IDE and check the AnimatedGifView library in the list of libraries. 3. Open the designer, drop a CustomView control, and in the CustomType choose AnimatedGifView. You can load files by using the Load method: Code: Copy 'Set the 3rd parameter to true to automatically start it AnimatedGif.Load(File.DirAssets, "1.gif", False) Properties: Visible, Stopped, Paused, Frame, Frames, EventsDisabled Methods: Load Events: Load, Pause, Stop, Frame, Play Note: If you are just using it for ajax loaders, then set the Tag property to 1 in order to disable events and save some some serious CPU cycles. In the samples folder, there is a ready-to-play sample project. Enjoy! Version history: 1.2 Added: Visible, Frame, Frames, EventsDisabled properties Removed: Resume event Added: Load, Pause, Stop, Frame, Play events 1.1 Removed: Pause, Resume methods Added: Paused, Stopped property. Stopped = true will reset the animation frame. 1.0 Initial version Attachments upload_2014-7-11_18-59-51.png 45.3 KB · Views: 819 sample1.png 19.8 KB · Views: 902 AnimatedGifView.zip AnimatedGifView.zip 404 KB · Views: 984 Last edited: Jul 13, 2014 Click to expand...
Introduction This is a DesignerCustomView control which is based on the native android movie view and will allow you to display animated gifs (tranparent ones as well). How to use 1. Extract the AnimatedGifView jar + xml to the B4A libraries folder. 2. Open the IDE and check the AnimatedGifView library in the list of libraries. 3. Open the designer, drop a CustomView control, and in the CustomType choose AnimatedGifView. You can load files by using the Load method: Code: Copy 'Set the 3rd parameter to true to automatically start it AnimatedGif.Load(File.DirAssets, "1.gif", False) Properties: Visible, Stopped, Paused, Frame, Frames, EventsDisabled Methods: Load Events: Load, Pause, Stop, Frame, Play Note: If you are just using it for ajax loaders, then set the Tag property to 1 in order to disable events and save some some serious CPU cycles. In the samples folder, there is a ready-to-play sample project. Enjoy! Version history: 1.2 Added: Visible, Frame, Frames, EventsDisabled properties Removed: Resume event Added: Load, Pause, Stop, Frame, Play events 1.1 Removed: Pause, Resume methods Added: Paused, Stopped property. Stopped = true will reset the animation frame. 1.0 Initial version
Periklis Koutsogiannis Active Member Licensed User Longtime User Jul 12, 2014 #2 Update: 1.2 Added: Visible, Frame, Frames, EventsDisabled properties Removed: Resume event Added: Load, Pause, Stop, Frame, Play events Last edited: Jul 12, 2014
Update: 1.2 Added: Visible, Frame, Frames, EventsDisabled properties Removed: Resume event Added: Load, Pause, Stop, Frame, Play events
Douglas Farias Expert Licensed User Longtime User Jul 13, 2014 #5 @Periklis Koutsogiannis have a way to put the small gifs 100% on the screen? i m trying to put AnimatedGif 100% but the giff is on center gifs examples http://www.nesseuniversoparalelo.com/2014/07/20-gifs-para-brisar-3.html#more
@Periklis Koutsogiannis have a way to put the small gifs 100% on the screen? i m trying to put AnimatedGif 100% but the giff is on center gifs examples http://www.nesseuniversoparalelo.com/2014/07/20-gifs-para-brisar-3.html#more
Periklis Koutsogiannis Active Member Licensed User Longtime User Jul 13, 2014 #7 @Douglas Farias will be implemented in the upcoming version.
Periklis Koutsogiannis Active Member Licensed User Longtime User Jul 13, 2014 #8 thread closed please use the new movieview control instead http://www.b4x.com/android/forum/threads/xtraviews-movieview-tutorial.42830/ - Last edited: Jul 13, 2014
thread closed please use the new movieview control instead http://www.b4x.com/android/forum/threads/xtraviews-movieview-tutorial.42830/ -
D Ddancer Member Licensed User Longtime User Dec 18, 2014 #9 This is Fantastic! - Great Work - tried other methods with problems and errors - this was s m o o t h. Thanks!
This is Fantastic! - Great Work - tried other methods with problems and errors - this was s m o o t h. Thanks!