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.05
- GradientBackground
- 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
esGradientToView(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)
- Functions:
- 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:
- softness As Int ' softness shadow (set value 2 to 4)
- TypeComics As String
- TypeDaisy4 As String
- TypeDaisy5 As String
- TypeDaisy8 As String
- TypeHexagonShadow As String
- TypeHeart 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 - GenerateEffectBackgound (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:
Attachments
Last edited: