Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Used for a wrapping list of items with fixed focus.
The wrap list container is one of several containers used to display items fromfile lists in various ways. The wrap list container is the same as the List Container, with two exceptions:
As with all container controls, the layout of the items within the control is very flexible.
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.
Tag | Description |
---|---|
viewtype | The type of view. Choices are list, icon, wide, wrap, biglist, bigicon, bigwide, bigwrap, info and biginfo. The label attribute indicates the label that will be used in the "View As" control within the GUI. It is localizable via strings.po. viewtype has no effect on the view itself. It is used by kodi when switching skin to automatically select a view with a similar layout. Skinners should try to set viewtype to describe the layout as best as possible. |
orientation | The orientation of the list. Defaults to vertical. |
pagecontrol | Used to set the <id> of the page control used to control this list. |
scrolltime | The time (in ms) to scroll from one item to another. By default, this is 200ms. The list will scroll smoothly from one item to another as needed. Set it to zero to disable the smooth scrolling. The scroll movement can be further adjusted by selecting one of the available tween methods. |
focusposition | Specifies the index (from 0 -> number items displayable - 1) of the focused item. The focused item doesn't move - as the user moves up and down (or left and right) the items scroll instead. |
itemlayout | Specifies the layout of items in the list. Requires the height attribute set in a vertical list, and the width attribute set for a horizontal list. The <itemlayout> then contains as many label and image controls as required. See here for more information. |
focusedlayout | Specifies the layout of items in the list that have focus. Requires the height attribute set in a vertical list, and the width attribute set for a horizontal list. The <focusedlayout> then contains as many label and image controls as required. See here for more information. |
content | Used to set the item content that this list will contain. Allows the skinner to setup a list anywhere they want with a static set of content, as a useful alternative to the grouplist control. See here for more information |
autoscroll | Used to make the container scroll automatically |