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:
NotifyEffect Ai2
Lib Used:
effects for android notifications
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 )
16 Likes
Great extension buddy, keep growing
2 Likes
Taifun
Split this topic
June 5, 2023, 8:08am
4
A post was split to a new topic: Extension request
After requesting the largest percentage, the extension should be open source
I present to you the source code for the NotifyEffect extension
NotifyEffect Ai2
Here it instructions how to use notify extension
mahmoud_hooda:
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
1 Like
How to change the size of Text ?