User Tools

Site Tools


built_in:layouts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:layouts [2015/01/24 09:36]
octazid lay.Animate - add more types
built_in:layouts [2018/12/08 02:02]
Line 1: Line 1:
-====== Layouts ====== 
  
-Layouts are the base to position controls over the screen of your Android device. 
- 
-===== Types ===== 
- 
-There are the following types of layouts: 
- 
-  * Linear 
-  * Absolute 
-  * Frame Layouts 
- 
-Linear layouts allow you to add controls one after another without overlapping them, in a vertical or horizontal way. 
- 
-Absolute layouts allows you to add controls in any position relative to the width and height of your screen from 0 to 1. 
- 
-Frame layouts are used to display objects in front or behind each other 
-===== Methods ===== 
-^Method ^Description ^ 
-|Layout.AddChild( child,order ) | | 
-|Layout.Animate( type,callback ) |known types: <code>SlideFromLeft 
-ScaleFromLeft 
-SlideToLeft 
-ScaleToLeft 
-SlideFromRight 
-ScaleFromRight 
-SlideToRight 
-ScaleToRight 
-SlideFromTop 
-ScaleFromTop 
-SlideToTop 
-ScaleToTop 
-SlideFromBottom 
-ScaleFromBottom 
-SlideToBottom 
-ScaleToBottom</code> | 
-|Layout.ChildToFront( child ) | | 
-|Layout.Destroy() | | 
-|Layout.DestroyChild( child ) | | 
-|Layout.GetAbsHeight() | | 
-|Layout.GetAbsWidth() | | 
-|Layout.GetChildOrder( child ) | | 
-|Layout.GetHeight() | | 
-|Layout.GetPosition() | | 
-|Layout.GetType() | | 
-|Layout.GetVisibility() | | 
-|Layout.GetWidth() | | 
-|Layout.Release() | | 
-|Layout.RemoveChild( child ) | | 
-|Layout.SetBackColor( colorCode ) | | 
-|Layout.SetBackGradient( color1,color2,color3,p4,p5,p6,p7 ) | | 
-|Layout.SetBackGradientRadial( x,y,r,color1,color2,color3,p7 ) | | 
-|Layout.SetBackground( imageFile, options ) |options is an optional string that can be “repeat” | 
-|Layout.SetMargins( left,top,right,bottom ) | | 
-|Layout.SetOrientation( orient ) |"Portrait" or "Landscape" | 
-|Layout.SetPadding( left, top, right, bottom ) | | 
-|Layout.SetPosition( left, top, width, height ) | | 
-|Layout.SetScale( x,y ) | | 
-|Layout.SetSize( width, height ) | | 
-|Layout.SetTouchable( touchable ) | | 
-|Layout.SetVisibility( visibility ) | "Hide" or "Show"| 
- 
-===== Options ===== 
-You can combine options too. Use the comma to seperate the options:  
-<code>app.CreateLayout("Linear", "Horizontal,FillXY,TouchThrough");</code> 
- 
-|Vertical| | 
-|Horizontal| | 
-|VCenter| | 
-|TopCenter|Default| 
-|FillX| | 
-|FillY| | 
-|FillXY| | 
-|Right| | 
-|Left| | 
-|Bottom| | 
-|TouchThrough| | 
built_in/layouts.txt · Last modified: 2018/12/08 02:02 (external edit)