This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
built_in:layouts [2015/11/22 18:54] 193.151.102.243 [Description] |
built_in:layouts [2016/12/24 11:22] 37.205.117.38 [Backgrounds] |
||
---|---|---|---|
Line 155: | Line 155: | ||
< | < | ||
Using Linear layouts and setting margins on child objects is usually the best way to position your App's graphical objects. | Using Linear layouts and setting margins on child objects is usually the best way to position your App's graphical objects. | ||
- | |||
- | =====Backgrounds===== | ||
- | The background of a layout will be transparent by default, but you can set a color using the **SetBackColor** function. | ||
- | < | ||
- | Colors are given as hex **color codes** which can be copied from various graphics programs or simply exprimented with until you get the color you want. The format is (# | ||
- | For example "# | ||
- | You can also use a gradient background for a layout using the **SetBackGradient** and **SetBackGradientRadial** functions. | ||
- | < | ||
- | < | ||
=====Visibility===== | =====Visibility===== | ||
Line 185: | Line 176: | ||
| Layout.GetType() | | Layout.GetType() | ||
| Layout.GetVisibility() | | Layout.GetVisibility() | ||
- | | Layout.GetWidth() | + | | Layout.GetWidth() |
- | | Layout.Release() | + | | Layout.SetOnTouch( callback ) |Does not work in ' |
+ | | Layout.SetOnTouchDown( callback ) |only OnTouchDown works when in ' | ||
+ | | Layout.SetOnTouchMove( callback ) |Does not work in ' | ||
+ | | Layout.SetOnTouchUp( callback ) |Does not work in ' | ||
+ | | Layout.Release() | ||
| Layout.RemoveChild( child ) | This removes a Child of an Layout, this Child can be added again with Layout.AddChild( child ). | | | Layout.RemoveChild( child ) | This removes a Child of an Layout, this Child can be added again with Layout.AddChild( child ). | | ||
| Layout.SetBackColor( colorCode ) | This sets the Background Color of an Layout. | | Layout.SetBackColor( colorCode ) | This sets the Background Color of an Layout. |