How to use a GIF image inside the block app related actions


Tinn Aphopchung

I did not post for long time.
I know we can use Blockapp and Blocktext to change text as loading...
Can I use Gif animation instead of only text like this?

How can we add it?
Thank you ,Tin


Tinn Aphopchung

researching..

http://api.jquerymobile.com/loader/
https://github.com/justin-credible/cordova-plugin-spinner


Tinn Aphopchung

And some animate splash screen
http://students.ceid.upatras.gr/~besarat/JB/Blog/Entries/2015/3/13_cordova_how_to_create_animated_splashscreen_android.html


DecSoft

Hello tin,

Certainly the "BlockText" action do not support HTML, so we can't include an GIF image. However, as you can see in the attached sample below, we can use a bit of CSS code to shown a GIF animated image into the "Block app" dialog. Just take a look tin:

BlockApp.zip *

On the other hand we can also use, for example, an application's view, in which we can place any kind of GIF image or Progressbar control, and then we can shown that application's view as a dialog or not, just depends on our needs.

* The CSS code that setup the GIF image has been placed in the application's "Inline CSS" option.



Tinn Aphopchung

great sample!!
Thank you,David


DecSoft
great sample!!
Thank you,David

You're welcome tin! :)


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.