Hello All, i wanted to share this small library with you guys, it's something i wrapped while i needed it for a project i'm working on, I hope it can be of use to someone here.
Is really not a big deal, but basically it shows a ToastMessage with a progressbar inside of it. It gives a very nice animation when you call the Progress.Success method.
Give it a try and let me know what you guys think.
The project is based on the original project here:
https://github.com/code-mc/loadtoast
Instructions:
copy and paste the three files inside the zipped folder, ProgressLoadToast.xml, ProgressLoadToast.jar and the NineOldAndroids.jar files into your additional libraries folder.
Also copy the two images named ic_error.png and the ic_navigation_check.png into your object/res/drawable folder and don't forget to mark them as read only.
Enjoy:
Documentation:
ProgressLoadToast
Version: 1.32
Thanks,
Walter
Is really not a big deal, but basically it shows a ToastMessage with a progressbar inside of it. It gives a very nice animation when you call the Progress.Success method.
Give it a try and let me know what you guys think.
The project is based on the original project here:
https://github.com/code-mc/loadtoast
Instructions:
copy and paste the three files inside the zipped folder, ProgressLoadToast.xml, ProgressLoadToast.jar and the NineOldAndroids.jar files into your additional libraries folder.
Also copy the two images named ic_error.png and the ic_navigation_check.png into your object/res/drawable folder and don't forget to mark them as read only.
Enjoy:
Documentation:
ProgressLoadToast
Version: 1.32
- ProgressLoadToast
Methods:- BackgroundColor (backgroundcolor As Int)
ba:
backgroundcolor: Sets the progressloadtoast background color
Example:
<code>
dim prg as ProgressLoadToast
prg.Initialize("Please wait while Loading...", Colors.Blue)
prg.BackgroundColor(Colors.Green)
</code> - Error
ba: Displays an error icon if your operation failed:
Example:
<code>
prg.Error
</code> - Initialize (toastmessage As String, textcolor As Int)
ba:
toastmessage:
textcolor: Initializes the progressloadtoast
Parameters required are the message to be displayed and the textcolor
Example:
<code>
dim prg as ProgressLoadToast
prg.Initialize("Please wait while Loading...", Colors.Blue)
</code> - ProgressColor (progresscolor As Int)
ba:
progresscolor: Sets the progress Circle Color.
Example:
<code>
dim prg as ProgressLoadToast
prg.Initialize("Please wait while Loading...", Colors.Blue)
prg.ProgressColor(Colors.Red)
</code> - Success
ba: Animates the progressloadtoast when your function has finished
Equivalent to
<code>progressdialoghide</code>
Example:
<code>
prg.Success
</code> - TextColor (textcolor As Int)
ba:
textcolor: Sets the text color of the message in the progresstoast
Example:
<code>
prg.TextColor(Colors.Black)
</code> - YTranslation (y As Int)
ba:
y: Sets the Y position of the progressloadtoast
Example:
<code>
dim prg as ProgressLoadToast
prg.Initialize("Please wait while Loading...", Colors.Blue)
prg.YTranslation(200dip)
</code> - show
ba: Shows the progressloadtoast when ready
Example:
<code>
dim prg as ProgressLoadToast
prg.Initialize("Please wait while Loading...", Colors.Blue)
prg.show
</code>
- BackgroundColor (backgroundcolor As Int)
Thanks,
Walter
Attachments
Last edited: