Kodi ——6 Controls (21)6.21 Group Control

来源:互联网 发布:淘宝网上商城 编辑:程序博客网 时间:2024/06/07 08:51

6.21 Group Control

    group control是最重要的控件之一它可以让你控件组织在一起同时将属性应用于所有的控件它还能记住组中最后一个导航的按钮,这样你可以设置<onup>件组的一个控件时,它总是可以返回到你之前所在的控件。它也可以让你更加准确地定位彼此相关的控件作为一个group的任何控制从group左上角它们的坐标(或从其他地方,如果你使用“r”属性)可以有很多group,在你的skin中,可以在group中定义group,都没有问题

6.21.1 Example

<control type="group" id="17">      <description>My first group control</description>      <left>80</left>      <top>60</top>      <width>250</width>      <height>30</height>      <defaultcontrol>2</defaultcontrol>      <visible>true</visible>      <onup>2</onup>      <ondown>3</ondown>      <onleft>1</onleft>      <onright>1</onright>      ... more controls go here ...</control>

6.21.2 Available tags

In addition to the Default Control Tags the following tags are available. Note that each tag is lower case only. This is important, as xml tags are case-sensitive.

TagDescriptiondefaultcontrolSpecifies the default control that will be focused within the group when the group receives focus. Note that the group remembers it's previously focused item and will return to it.



0 0