This is a wrap for this Github-Project.
FoldingCell
Author: DonManfred (wrapper)
Version: 1
FoldingCellView
Fields:
FoldingCell
Fields:
Installation:
Copy content of res.Foldingell.zip to additional libs folder!
Copy content of FoldingCellV1.0.zip to additional libs folder!
Use the code in FoldingCellEx.zip as Example on how it works.
thanks to (for "Motivating me" ):
@Douglas Farias
@rboeck
@Ohanian
@BillMeyer
FoldingCell
Author: DonManfred (wrapper)
Version: 1
FoldingCellView
Fields:
- ba As anywheresoftware.b4a.BA
- DesignerCreateView (base As anywheresoftware.b4a.objects.PanelWrapper, lw As anywheresoftware.b4a.objects.LabelWrapper, props As anywheresoftware.b4a.objects.collections.Map) As void
- withFrontView (frontView As android.view.View) As de.donmanfred.FoldingCellViewWrapper
- animateFrontView (animation As android.view.animation.Animation) As void
- IsInitialized As boolean
- Initialize (ba As anywheresoftware.b4a.BA, EventName As java.lang.String, frontView As android.view.View, backView As android.view.View) As void
- BringToFront As void
- SetLayout (arg0 As int, arg1 As int, arg2 As int, arg3 As int) As void
- SendToBack As void
- SetVisibleAnimated (arg0 As int, arg1 As boolean) As void
- RemoveView As void
- Invalidate3 (arg0 As int, arg1 As int, arg2 As int, arg3 As int) As void
- Invalidate2 (arg0 As android.graphics.Rect) As void
- withBackView (backView As android.view.View) As de.donmanfred.FoldingCellViewWrapper
- SetColorAnimated (arg0 As int, arg1 As int, arg2 As int) As void
- SetBackgroundImage (arg0 As android.graphics.Bitmap) As void
- Invalidate As void
- SetLayoutAnimated (arg0 As int, arg1 As int, arg2 As int, arg3 As int, arg4 As int) As void
- RequestFocus As boolean
- Left As int
- Background As android.graphics.drawable.Drawable
- Parent As java.lang.Object [read only]
- Color As int [write only]
- Enabled As boolean
- BackView As android.view.View [read only]
- Top As int
- Visible As boolean
- Padding As int[]
- Height As int
- Tag As java.lang.Object
- Width As int
- FrontView As android.view.View [read only]
FoldingCell
Fields:
- ba As anywheresoftware.b4a.BA
- DesignerCreateView (base As anywheresoftware.b4a.objects.PanelWrapper, lw As anywheresoftware.b4a.objects.LabelWrapper, props As anywheresoftware.b4a.objects.collections.Map) As void
- IsInitialized As boolean
- Initialize (ba As anywheresoftware.b4a.BA, EventName As java.lang.String, frontView As android.view.View, backView As android.view.View) As void
- BringToFront As void
- SetLayout (arg0 As int, arg1 As int, arg2 As int, arg3 As int) As void
- SendToBack As void
- SetVisibleAnimated (arg0 As int, arg1 As boolean) As void
- init (animationDuration As int, backSideColor As int, additionalFlipsCount As int) As void
Initializes folding cell programmatically with custom settings
animationDuration: animation duration, default is 1000
backSideColor: color of back side, default is android.graphics.Color.GREY (0xFF888888)
additionalFlipsCount: count of additional flips (after first one), set 0 for auto - RemoveView As void
- Invalidate3 (arg0 As int, arg1 As int, arg2 As int, arg3 As int) As void
- isUnfolded As boolean
- Invalidate2 (arg0 As android.graphics.Rect) As void
- toggle (skipAnimation As boolean) As void
Toggle current state of FoldingCellLayout - SetColorAnimated (arg0 As int, arg1 As int, arg2 As int) As void
- addView (child As android.view.View, width As int, height As int) As void
- SetBackgroundImage (arg0 As android.graphics.Bitmap) As void
- fold (skipAnimation As boolean) As void
Fold cell with (or without) animation
skipAnimation: if true - change state of cell instantly without animation - Invalidate As void
- SetLayoutAnimated (arg0 As int, arg1 As int, arg2 As int, arg3 As int, arg4 As int) As void
- RequestFocus As boolean
- unfold (skipAnimation As boolean) As void
Unfold cell with (or without) animation
skipAnimation: if true - change state of cell instantly without animation
- Left As int
- Background As android.graphics.drawable.Drawable
- Parent As java.lang.Object [read only]
- Color As int [write only]
- Enabled As boolean
- Top As int
- Visible As boolean
- Padding As int[]
- Height As int
- Tag As java.lang.Object
- Width As int
Installation:
Copy content of res.Foldingell.zip to additional libs folder!
Copy content of FoldingCellV1.0.zip to additional libs folder!
Use the code in FoldingCellEx.zip as Example on how it works.
thanks to (for "Motivating me" ):
@Douglas Farias
@rboeck
@Ohanian
@BillMeyer
Attachments
Last edited: