Layout
Layout is used as containers to place objects such as textview or other layouts.
app.CreateLayout(type,options)Types
- 1. Linear - alligns child objects in a defined way e.g horizontally and vertically.
- 2. Frame - alligns them on top of each other.
- 3. Absolute - alligns them using the method obj.SetPosition(r,c,w,h).
Options
- Horizontal
- Top
- TopCenter
- Center
- Bottom
- Bottom Center
- Horizontal
- Vertical
- FillX
- FillY
- FillXY
Methods
- id
- Destroy()
- Release()
- SetVisibility( mode )
- GetVisibility()
- Hide()
- Gone()
- Show()
- IsVisible()
- SetPadding( left,top,right,bottom )
- SetMargins( left,top,right,bottom )
- SetBackground( file,options )
- SetBackColor( clr )
- SetBackGradient( colour1,colour2,colour3,options )
- SetBackGradientRadial( x,y,radius,colour1,colour2,colour3,options )
- SetColorFilter( clr,mode )
- AdjustColor( hue,sat,bright,cont )
- SetPosition( left,top,width,height,options )
- SetSize( width,height,options )
- GetWidth( options )
- GetHeight( options )
- GetAbsWidth()
- GetAbsHeight()
- GetLeft( options )
- GetTop( options )
- GetPosition( options )
- SetScale( x,y )
- Focus()
- GetType()
- SetOrientation( orient )
- AddChild( child,order )
- RemoveChild( child )
- DestroyChild( child )
- ChildToFront( child )
- GetChildOrder( child )
- Animate( type,callback,time )
- SetTouchable( touchable )
- SetOnTouch( callback )
- SetOnTouchUp( callback )
- SetOnTouchMove( callback )
- SetOnTouchDown( callback )
- SetOnLongTouch( callback )