This new library is based on my latest work (here) of gradual backgrounds and @JordiCP 's code (here) that gave me permission to rework it and insert it in a custom view.
SD_CreativeBackground
Author: Star-Dust
Version: 0.06
- GradientBackground
- Fields:
- Fill_BL_TR As String
- Fill_BOTTOM_TOP As String
- Fill_BR_TL As String
- Fill_LEFT_RIGHT As String
- Fill_Radial As String
- Fill_RIGHT_LEFT As String
- Fill_TL_BR As String
- Fill_TOP_BOTTOM As String
- Fill_TR_BL As String
- Functions:
- Class_Globals As String
- GenerateGradientRounded (Width As Int, Height As Int, TintColor As Int(), Fill As String, BorderColor As Int, BorderWidth As Float, CornerRadius As Float) As B4XBitmap
es. GenerateGradientRounded(array as int(xui.Color_Black,xui.Color_White),ColorGradient.Fill_Radial,10Dip)
Fill = RADIAL, TR_BL , TL_BR, BL_TR , BR_TL
TOP_BOTTOM, BOTTOM_TOP, RIGHT_LEFT, LEFT_RIGHT - GradientToView (Vw As B4XView, TintColor As Int(), Fill As String, BorderColor As Int, BorderWidth As Float, CornerRadius As Float) As String
"RADIAL", "TR_BL" , "TL_BR", "BL_TR" , "BR_TL", "TOP_BOTTOM", "BOTTOM_TOP", "RIGHT_LEFT", "LEFT_RIGHT"
es. GradientToView(MyImageView,Array As Int(0xFF9F26E7,0xFFD287DA),"RADIAL",xui.Color_Black,0dip,20dip) - Initialize As String
Initializes the object. You can add parameters to this method if needed. - IsInitialized As Boolean
Verifica se l'oggetto sia stato inizializzato. - PatternColor (PatternNumber As Int) As Int()
PatternNumber (0..20)
0 = lilla; 1 = rosa; 2 = red; 3 = blue; 4 = blue2; 5 = cyan; 6 = yellow
7 = Green; 8 = Green2; 9 = Brown; 10 = Orange; 11 = none; 12 = Gold; 13 = Silver; 14 = Silver2
15 = Elettro; 16 = none; 17 = bronze; 18 = Rainbow; 19 = Rainbow; 20 = diamond
- Fields:
- NativeShadow
- Functions:
- Class_Globals As String
- Initialize As String
Initializes the object. You can add parameters to this method if needed. - IsInitialized As Boolean
Verifica se l'oggetto sia stato inizializzato. - NativeShadowToView (Vw As B4XView, ShadowsWidth As Float) As String
- Functions:
- ShadowEffectBackground
- Fields:
- DarkFactor As Float
- LightFactor As Float
- softness As Int
- TypeComics As String
- TypeDaisy4 As String
- TypeDaisy5 As String
- TypeDaisy8 As String
- TypeHeart As String
- TypeHexagonShadow As String
- TypeRect As String
- Functions:
- Class_Globals As String
- EffectBackgroundToView (Vw As B4XView, Effect As String, InvertShadow As Boolean, Color As Int, DepthEdge As Int, cornerRadius As Int, Recursive As Int, AlternateShadow As Boolean) As String
Parameter
GenerateBackgound(View,Effect, InvertShadow, Color, DepthEdge, CornerRadius, Recursive, AlternateShadow, Rotate) As B4XBitmap
Vw as view,
Effect = Type of Effect,
InvertShadow (Light Down, Dark Up)
Color = Color of base
DepthEdge = Depth of shadow
CornerRadius = 0 for rectangle
Recursive = Shadows one inside the other (For single shadowd set=1)
AlternateShadow = If the recursive value is greater than 1 the invert shadows alternate - GenerateEffectBackground (Vw As B4XView, Effect As String, InvertShadow As Boolean, Color As Int, DepthEdge As Int, cornerRadius As Int, Recursive As Int, AlternateShadow As Boolean) As B4XBitmap
- Initialize As String
Initializes the object. You can add parameters to this method if needed. - IsInitialized As Boolean
Verifica se l'oggetto sia stato inizializzato.
- Fields:
- sePoint
- Fields:
- IsInitialized As Boolean
Verifica se l'oggetto sia stato inizializzato. - X As Float
- Y As Float
- IsInitialized As Boolean
- Functions:
- Initialize
Inizializza i campi al loro valore predefinito.
- Initialize
- Fields:
Attachments
Last edited: