Just this simple thing https://github.com/developer-shivam/Diagonalify
DiagonalView
Author: SMM
Version: 0.01
Sample
DiagonalView
Author: SMM
Version: 0.01
- Diagonalify
Events:- _click
- GRAVITY_LEFT As String
- GRAVITY_RIGHT As String
- ba As BA
- BringToFront
- Initialize (EventName As String)
- Invalidate
- Invalidate2 (arg0 As Rect)
- Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- IsInitialized As Boolean
- RemoveView
- RequestFocus As Boolean
- SendToBack
- SetBackgroundImage (arg0 As Bitmap)
- SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
- SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
- SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
- Angle As Int [write only]
- Background As Drawable
- BackgroundColor As Int [write only]
- Color As Int [write only]
- DiagonalColor As Int [write only]
- DiagonalGravity As String [write only]
GRAVITY_RIGHT or GRAVITY_LEFT fields - Enabled As Boolean
- Height As Int
- Left As Int
- Parent As Object [read only]
- Tag As Object
- Top As Int
- Visible As Boolean
- Width As Int
Sample
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim dv As Diagonalify
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
dv.Initialize("dv")
Activity.AddView(dv,0,0,100%x,100%y)
dv.DiagonalGravity=dv.GRAVITY_RIGHT
dv.DiagonalColor=Colors.White
dv.BackgroundColor=Colors.LightGray
dv.Angle=30
End Sub