Best way for progress & activity bars on Android: GIF or code? - user-interface

I'm an 2D animator and am new to Android development. I have one idea about creating animated stocks for Android, but what's the best way to create a progress and activity bar, GIF or code?
Using GIF images you have no limits. A lot of animation and effects
using are code, and you have custom control of everything.
So, what's the best? Is it a good idea to use GIF images?

Related

How to create ripple effect using still image and apply it to 10000 of images making them animated gifs programmatically

I have thousands of images to be used as NFTs and the client wants them to be animated by the ripple effect. I am using an After Effects for a few images but how to do it over many thousands? See the image for reference: https://imgur.com/a/86pdv6u

Flutter, scroll, pinch and zoom large image

I need to show a large image (or pdf) that the user can then scroll around and pinch & zoom.
In iOS / Android, I'd just show it in a WebView.
Note: the file to display is from the filesystem (an asset), not from the internet.
Is there a way of doing this in Flutter?
Actually the only thing that you can do is to use this plugin:
https://github.com/dart-flitter/flutter_webview_plugin
It is not very customizable, but it should work for simple use cases.
PS. The zoom actually doesn't work and there is also another similar library:
https://pub.dartlang.org/packages/flutter_web_view

QLabel show image slowly

I develop a image browser to show image series with QSlider. I connncet valueChanged(int) of QSlider to a self-defined function:
QObject::connect(ui.imgIndexSlider, SIGNAL(valueChanged(int)), this,SLOT(onimgIndexSliderValueChanged(int)));
when I drag the slider, the image that QLabel shows will changed by the QSlider value.It works.But there is a problem that if you drag fast,the Application will not run acceptably.
Could you tell me how to slove this problem.
Thank you very much.
It is not clear much from your question, but I am assuming that you are showing images like a slideshow using the slider. When you slide it fast your application is getting choked i.e. freezes?
Qt is rendering the image in your GUI thread.
If the images are all high resolution then it will take much more time in rendering each image.
When you slide faster than Qt can render a single image you will experience problems.
So here is what I would ideally do if I were in your place:
Implement a custom algorithm which will read the image file and
create a preview image of much smaller size. Since you are only
generating a pixmap in memory, you can do this by multi threading.
You can do this when your application is launched.
Show all the preview's as scrollable tiles on left pane similar to
Powerpoint. You can reduce some coding here by letting Qt render
these preview's by using QLabel.
Have a central widget which occupies the major chunk of the window
which will render the images using your custom algorithm. Your
algorithm will be such that it will read the actual image if the
slider is not running. If slider is running fast enough then you simply need to
scale your preview images and display in the widget.
Feel free to ask questions if you find anything difficult to understand. :)

How to make animated NSCursor?

Is there a way to make animated NSCursor with my custom gif image?
Unfortunately, no--your best bet is to create an array of NSCursors, one for each frame of your image, and set them yourself using whatever animation strategy you'd like (perhaps an NSTimer?).

Frame based animation on WP7 Silverlight

Coming from the iOS world where we have UIImageView and the property animationImages:
http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImageView_Class/Reference/Reference.html#//apple_ref/occ/instp/UIImageView/animationImages
Where animationImages is just an array of arbitrary animation frames. You specify the images (maybe 15), then set the total animation time (maybe 4 seconds) in one of the other properties, then just start the anim and the images in animationImages will play sequentially over the specified time with an even frame rate.
How would I do the same with WP7/Silverlight? This all Expression Blend seems wonderful, but I just can't find a way to animate the image source (I'm guessing it might be impossible). How would I do the same? Should I add a unique image object for each frame in the animation, then play around with visibility/opacity properties and manually have to create all the spaced out key frames? That sounds like a lot of extra work + overhead and not a nice way to go...
http://www.windowsphonegeek.com/articles/WP7-Animations-in-depthndash-Overview-and-Getting-Started
http://www.wearerighteous.com/wp7-development/xaml-animation-in-silverlight-for-windows-phone-7/
http://www.windowspresentationfoundation.com/?p=712
Try out these links. Especially the first one, I think the first one resolve all you doubts. In wp7 we can go for two options either XAML based (static) animations / or with the help of C# code. By using blend u can create all sot of static animation with out any issue. Here the animation is working on the basis of page frames. If u are interested in learning more about Animation try this too;
http://msdn.microsoft.com/en-us/library/cc189019(v=vs.95).aspx
You can actually animate the Image.Source property here's a tutorial.
Animating Images in WP7

Resources