🧩 LongShadow
An extension for MIT App Inventor 2.A component that creates long shadow effects for views with customizable angle, color and gradient.
Telegram | GitHub
Blogger | YouTube
Find More Extension
Terms & Conditions
Specifications
Package: io.th.longshadow
Size: 12.40 KB
Version: 1.0
Minimum API Level: 7
Updated On: 2025-06-06T18:30:00Z
Built & documented using: FAST v2.8.4
Get: aix
Get: aia
Get: apk
Find more info On: GitHub
Library Use On: TintLayout thanks you Devlight for this library.
Demo
Blocks
Documentation here
Methods:
LongShadow has total 8 methods.
Initialize
Initialize inside an arrangement. This must be called before using other functions.
Parameter | Type |
---|---|
arrangement | component |
TextStyle
Sets the text style (0=normal, 1=bold, 2=italic, 3=bold|italic)
Parameter | Type |
---|---|
style | number |
GradientColors
Sets gradient colors for the shadow effect. You can provide up to 3 colors.
Parameter | Type |
---|---|
color1 | number |
color2 | number |
color3 | number |
GradientColors2
Sets gradient colors for the shadow effect with two colors.
Parameter | Type |
---|---|
color1 | number |
color2 | number |
ClearGradientColors
Clears the gradient colors and uses the default shadow color.
ApplyTextShadow
Applies shadow effect to text
Cleanup
Cleans up and removes the component from the arrangement
Margins
Sets all margins at once (left, top, right, bottom) in pixels
Parameter | Type |
---|---|
left | number |
top | number |
right | number |
bottom | number |
Setters:
LongShadow has total 9 setter properties.
Angle
Sets the angle of the shadow effect (0-360 degrees)
- Input type:
number
Color
Sets the color of the shadow effect
- Input type:
number
Text
Sets the text to display
- Input type:
text
TextSize
Sets the text size
- Input type:
number
TextColor
Sets the text color
- Input type:
number
MarginLeft
Sets the left margin of the text label in pixels
- Input type:
number
MarginRight
Sets the right margin of the text label in pixels
- Input type:
number
MarginTop
Sets the top margin of the text label in pixels
- Input type:
number
MarginBottom
Sets the bottom margin of the text label in pixels
- Input type:
number
Getters:
LongShadow has total 7 getter properties.
Angle
Sets the angle of the shadow effect (0-360 degrees)
- Return type:
number
Color
Sets the color of the shadow effect
- Return type:
number
Text
Sets the text to display
- Return type:
text
MarginLeft
Sets the left margin of the text label in pixels
- Return type:
number
MarginRight
Sets the right margin of the text label in pixels
- Return type:
number
MarginTop
Sets the top margin of the text label in pixels
- Return type:
number
MarginBottom
Sets the bottom margin of the text label in pixels
- Return type:
number
Thank
Feel free to contact us any quarry or suggestions.