Kodi Community Forum
add space between first item and second item of a list container - 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: add space between first item and second item of a list container (/showthread.php?tid=379346)

Pages: 1 2


RE: add space between first item and second item of a list container - realcopacetic - 2024-11-08

(2024-11-06, 23:38)ranjibart Wrote:
(2024-11-06, 01:48)Hitcher Wrote: Can you post a mock up because I don't really understand exactly what you want?
I did some photoshop and tried to make it as obvious as possible. I uploaded 3 pics.

starting point: Image

ideally to this (multi-row solution): Image

alternatively (single-row solution): Image

Unless I am not understanding this would be a fixed list wouldn't it? With the focused item always in the same position, but you just want the focusedlayout to be wider than the item layout? Or does something else go in the empty space/space for pic?


RE: add space between first item and second item of a list container - Hitcher - 2024-11-08

They don't want to use a fixed list.


RE: add space between first item and second item of a list container - realcopacetic - 2024-11-08

So should the empty space move too when focused item changes? I'm really struggling to visualise how this is supposed to look when it moves


RE: add space between first item and second item of a list container - ranjibart - 2024-11-08

(2024-11-08, 15:05)realcopacetic Wrote: So should the empty space move too when focused item changes? I'm really struggling to visualise how this is supposed to look when it moves

no no, it's fixed. Hence the space. I want to move from number 1 to 2 to 3 etc ... on the pics without changing their places. It's literally a basic list like I have shown in the first picture - except I want space after the first item and don't want the second item/third item/etc... to be seamlessly behind the first. There should be a GAP.

Does that makes sense?


RE: add space between first item and second item of a list container - ranjibart - 2024-11-09

i made an easier example. Instead of navigating gapless from item 1 (Library):
Image

to item 2 (General):
Image

I want a gap. So I go from item 1 (Library):
Image

to item 2 (General):
Image

Navigation stays the same. Nothing changes for items 3 to item x.

Hope that makes it clearer.


RE: add space between first item and second item of a list container - Hitcher - 2024-11-09

Like I said, you're going to have to use a hidden list and static images. To fill the images you'll need to use variables with lots of conditions (ie Container(id).Position(pos), Container(id).HasNext, Container(id).HasPrevious, and Container(id).ListItem(offset).Icon).


RE: add space between first item and second item of a list container - ranjibart - 2024-11-09

(2024-11-09, 14:07)Hitcher Wrote: Like I said, you're going to have to use a hidden list and static images. To fill the images you'll need to use variables with lots of conditions (ie Container(id).Position(pos), Container(id).HasNext, Container(id).HasPrevious, and Container(id).ListItem(offset).Icon).

Ok then. I know I am the only one who could have come up with such a weird request...

Thank you for the solution! I will try to make it happen.