This shows you the differences between two versions of the page.
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, | ||
- | ScaleFromLeft | ||
- | SlideToLeft | ||
- | ScaleToLeft | ||
- | SlideFromRight | ||
- | ScaleFromRight | ||
- | SlideToRight | ||
- | ScaleToRight | ||
- | SlideFromTop | ||
- | ScaleFromTop | ||
- | SlideToTop | ||
- | ScaleToTop | ||
- | SlideFromBottom | ||
- | ScaleFromBottom | ||
- | SlideToBottom | ||
- | ScaleToBottom</ | ||
- | |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, | ||
- | |Layout.SetBackGradientRadial( x, | ||
- | |Layout.SetBackground( imageFile, options ) |options is an optional string that can be “repeat” | | ||
- | |Layout.SetMargins( left, | ||
- | |Layout.SetOrientation( orient ) |" | ||
- | |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 ) | " | ||
- | |||
- | ===== Options ===== | ||
- | You can combine options too. Use the comma to seperate the options: | ||
- | < | ||
- | |||
- | |Vertical| | | ||
- | |Horizontal| | | ||
- | |VCenter| | | ||
- | |TopCenter|Default| | ||
- | |FillX| | | ||
- | |FillY| | | ||
- | |FillXY| | | ||
- | |Right| | | ||
- | |Left| | | ||
- | |Bottom| | | ||
- | |TouchThrough| | |