Kodi Community Forum
Good Questions... - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Good Questions... (/showthread.php?tid=125686)



Good Questions... - slinuxgeek - 2012-03-16

Hello every one,
1.
can we have background color or background image/texture for a "label" control, If Yes then How can we do that? Its not on wiki.

2.
I have a list control with some static contents :
<content>
<item id="1">
<label>Songs</label>
<onclick>...</onclick>
</item>
<item id="2">
<label>Artist</label>
<onclick>...</onclick>
</item>
</content>
And I am displaying these choices on label through <itemlayout> & <focusedlayout> but instead of label I want to display them as buttons .
So the question is can we have "button" control inside <itemlayout> & <focusedlayout> for a list / list kind of
control ? advantage will be that we will be able to set image/texture for buttons background.

Thank You for Help.


RE: Good Questions... - Hitcher - 2012-03-16

1. Not one that will auto-size to the length of the label - you just have to display a texture underneath the label.

2. No, you have to 'fake' it by using your button textures in image controls with visible conditionals for when it's focused and when it's enabled.