Kodi ——6 Controls (10)6.10 Slider Control

来源:互联网 发布:金山数据恢复会员 编辑:程序博客网 时间:2024/05/22 01:59

6.10 滑块控件

滑块控制用于手动操作的滑动音量控制或进度控制)。您可以选择的位置,大小以及滑动控件的外观。

6.10.1 Example

<control type="slider" id="17">      <description>My first slider control</description>      <left>80</left>      <top>60</top>      <width>250</width>      <height>30</height>      <visible>true</visible>      <texturesliderbar>mybackgroundtexture.png</texturesliderbar>      <textureslidernib>mydowntexture.png</textureslidernib>      <textureslidernibfocus>mydownfocustexture.png</textureslidernibfocus>      <info></info>      <action></action>      <controloffsetx></controloffsetx>      <controloffsety></controloffsety>      <pulseonselect></pulseonselect>      <onup>2</onup>      <ondown>3</ondown>      <onleft>1</onleft>      <onright>1</onright></control>

6.10.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.

TagDescriptiontexturesliderbar

Specifies the image file which should be displayed in the background of the slider control.See here for additional information about textures.

textureslidernibSpecifies the image file which should be displayed for the slider nib.尖端textureslidernibfocusSpecifies the image file which should be displayed for the slider nib when it has focus.controloffsetxAmount to offset the slider background texture from the left edge of the control. Only useful if a value is being rendered as well (ie in int or float mode).controloffsetyAmount to offset the slider background texture from the top edge of the control.infoSpecifies the information that the slider controls. See here for more information.actionCan be 'volume' to adjust the volume or 'seek' to change the seek position.

0 0
原创粉丝点击