Can we dynamically change size of a list?
#1
Question 
Hi Guys,

I'm currently in the middle of a rewrite of my shelf widgets code and have come up against a bit of a problem.

Currently I use lists with dynamic content to display icons for various content across my screen. I have just added code to show the currently playing music or video as a now playing icon on the left hand side of the screen and so to make room for this icon I use an animation to slide the list to the right. This part works well, BUT when the user scrolls thru the widgets and gets to the edge of the screen the focus keeps going off the side of the screen. Everything is still scrolling correctly, its just you can't see the focus.

I have tried various methods to change the width including using $VAR's, conditions in the width tag and conditional includes and the only one that works is the conditional include. Only problem is that the list will change down to a smaller size just fine, but will not change back to the wider list without a skin reload.

Has anyone managed to get anything similar to work and if so how did you do it?

Wyrm (AppTV)
If required a FULL debug log can now be submitted from the skin in settings->skin settings->support. Or follow instructions here if you can't access skin settings.

FAQ's located at :- http://kodi.wiki/view/Add-on:AppTV
Reply
#2
This might help but I can't remember right now if it's been merged or not.

https://github.com/mkortstiege/xbmc/comm...28e831444e
Reply
#3
It's not merged. The one is pretty limited to grouplists and won't work well other kind of lists unfortunately.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#4
(2015-10-19, 08:17)Hitcher Wrote: This might help but I can't remember right now if it's been merged or not.

https://github.com/mkortstiege/xbmc/comm...28e831444e
Hitcher,

Thanks mate, not sure if that would apply to a list controls as such, that and was looking for something for Isengard. Will definitely keep an eye on github for when this makes mainline.

Did just have a thought on another solution. I could slide the list back if the user moves to a currently hidden widget, that could possibly cause other problems, so I might use this as a fallback if no one comes up with another solution.

Wyrm
If required a FULL debug log can now be submitted from the skin in settings->skin settings->support. Or follow instructions here if you can't access skin settings.

FAQ's located at :- http://kodi.wiki/view/Add-on:AppTV
Reply
#5
@wyrm, you're running lastest master? In case, mind checking if it's working in Isengard?

EDIT: Nvm, posted and noticed your reply when hitting submit. Wink
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply

Logout Mark Read Team Forum Stats Members Help
Can we dynamically change size of a list?0