All Blocks:
Instructions to use extension:
On Click Notify Event
Create Simple Notify
@iconPath = you icon that is you wanna display it in notify..(you can set it to empty text string if you don't need to display icon)
@msg = massage that is you wanna display it in notify
@effect = display notify with animation effect
available effects
Create Custom Notify
@iconPath = (String) you icon that is you wanna display it in notify..(you can set it to empty text string if you don't need to display icon)
@msg = (String) massage that is you wanna display it in notify
@effect = (Object) display notify with animation effect
available effects
@animDurationStr: (String) duration of animation
- deffault of
animDurationStr = 700
@displayDuationStr: (String) time of notify to display in millis
- deffault of
displayDuationStr = 1500
@bgColorStr: (String) color of background
- deffault of
bgColorStr = #FFBDC3C7
@iconBgColorStr : (String) color of icon background
- deffault of
iconBgColorStr = #FFFFFFFF
@textColorStr : (String) color of text (msg)
- deffault of
textColorStr = #FF444444
@textGravity: gravity of text (msg)
available text gravity
@textLines: (int) how many lines of text (msg)
- deffault of
textLines = 2
@textPadding: (int) padding of text (msg)
- deffault of
textPadding= 5
@viewHeight: (int) height of notify view
- deffault of
viewHeight= 48
@repeat: (Boolean) allow duplicates
- deffault of
repeat= false
Addon
- Simple Initialize Notify Effect
- Custom Initialize Notify Effect
Demo Block:
Demo:
AIX :
me.aemo.notifyeffect.aix (168.8 KB)
AIA (Ai2) :
Notify.aia (173.6 KB)
Source Code:
Lib Used:
NOTE:
- if you don’t need to use icon you can set iconPath empty String like this
( it will n’t work if you will use ThumbSlider effect )