home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Skins
Skinning engine improvements
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Smirnuff" data-source="post: 17888" data-attributes="member: 10545"><p><strong>Layout Managers - Swinging the Avalon way</strong></p><p></p><p>Layout managers are a really neat and simple way to create some really complex layouts that you would not normally be able to support without having to write line after line of code.</p><p></p><p>Those with a Java background will most likely be familiar with the most common ones, StackLayout, GridLayout and BorderLayout for instance.</p><p></p><p>Well the good news is that we are starting to implement layout managers in MP. A StackLayout and GridLayout have been added to CVS today and as time allows more will be added with the aim of reducing the complexity of the skin markup files, with the ultimate aim of having markup with next to no coordinate requirements and automagic scaling capabilities.</p><p></p><p><em>more info about the two supported layouts will when time permits but in the meantime feel free to search google for 'stacklayout' and 'gridlayout'.</em></p><p></p><p>For the time being only group controls will be able to utilize layout managers and to do so you must use the <layout> tag as follows:</p><p></p><p>[code]</p><p> <control></p><p> <type>group</type></p><p> <layout>StackLayout(20)</layout></p><p> <posX>60</posX></p><p> <posY>97</posY></p><p></p><p> ...</p><p> ...</p><p> ...</p><p> </control></p><p>[/code]</p><p></p><p>A stack layout can be declared as follows:</p><p></p><p>[code]</p><p> </p><p> <layout>StackLayout</layout></p><p></p><p> </p><p> <layout>StackLayout(10)</layout></p><p></p><p> </p><p> <layout>StackLayout(2, Horizontal)</layout></p><p>[/code]</p><p></p><p>To use a grid layout you can declare the layout as:</p><p></p><p>[code]</p><p> </p><p> <layout>GridLayout</layout></p><p></p><p> </p><p> <layout>GridLayout(4)</layout></p><p></p><p> </p><p> <layout>GridLayout(0, 6)</layout></p><p></p><p> </p><p> <layout>GridLayout(3, 0, 10, 15)</layout></p><p></p><p> </p><p> <layout>GridLayout(3, 0, 10, 15, Vertical)</layout></p><p>[/code]</p><p></p><p>to be continued...</p></blockquote><p></p>
[QUOTE="Smirnuff, post: 17888, member: 10545"] [b]Layout Managers - Swinging the Avalon way[/b] Layout managers are a really neat and simple way to create some really complex layouts that you would not normally be able to support without having to write line after line of code. Those with a Java background will most likely be familiar with the most common ones, StackLayout, GridLayout and BorderLayout for instance. Well the good news is that we are starting to implement layout managers in MP. A StackLayout and GridLayout have been added to CVS today and as time allows more will be added with the aim of reducing the complexity of the skin markup files, with the ultimate aim of having markup with next to no coordinate requirements and automagic scaling capabilities. [i]more info about the two supported layouts will when time permits but in the meantime feel free to search google for 'stacklayout' and 'gridlayout'.[/i] For the time being only group controls will be able to utilize layout managers and to do so you must use the <layout> tag as follows: [code] <control> <type>group</type> <layout>StackLayout(20)</layout> <posX>60</posX> <posY>97</posY> ... ... ... </control> [/code] A stack layout can be declared as follows: [code] <layout>StackLayout</layout> <layout>StackLayout(10)</layout> <layout>StackLayout(2, Horizontal)</layout> [/code] To use a grid layout you can declare the layout as: [code] <layout>GridLayout</layout> <layout>GridLayout(4)</layout> <layout>GridLayout(0, 6)</layout> <layout>GridLayout(3, 0, 10, 15)</layout> <layout>GridLayout(3, 0, 10, 15, Vertical)</layout> [/code] to be continued... [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
Skinning engine improvements
Contact us
RSS
Top
Bottom