r Viewtype ids 90 - 100 allowd?
#1
i've got strange behaviors if i use viewtype id's 90, 91 or 100

i've more or less copy the new view from a existend where everything work as it shuld. didnt change the visibles (exept of the ID of course). One view didnt work with id="100" after chanching to id="90" the view work asd expected.

now a other (new) view with id="91" have also strange behaviors (parts of it show randomly up in other views) visible shuld be set corectly as i did it again the same way as in existend working views.

any thouths?

r there id restrictions for views?
Reply
#2
i recently asked myself this question myself as well :-)
but i can't find a definite answer.

way back, skins could only define view id's in the 50-59 range.
when support for extended views was added, the default skin started using id's from 500 and upwards for those.
i assume there was a valid reason to start with 500 and not simply continue with 60 (and up) for additional views.

there a bit of info in the wiki on the subject: HOW-TO_add_a_new_view_type_to_the_skin

Quote:There are some ID's you can't use. The ones used by the window: http://kodi.wiki/view/Window_IDs

And the ones of the mandatory controls: http://kodi.wiki/view/XBMC_Skinning_Manual#.xml_files


my advice would be to play it safe, and just use id's 500-599 for additional views.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Back then a skin decided whether a container should be used as a viewtype by lookin at its Id, every container with id 50-59 was considered a viewtype.
That behaviour was changed, nowadays the skin looks at the <views> tag. The legacy code is still there though (see https://github.com/xbmc/xbmc/blob/master...w.cpp#L132 ), I think we should remove it for v18.
In general any id > 500 should be fine, lower ones are often used for internal stuff.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#4
Thanks to both

i did change in the meantime the ids to something in the 80 range where it seems to work.

if i will got problems again i will change to >500

thnks

--
btw.:
by "Hacking around" with the settingsarea, i sometimes have to use list id=50 for some stuff to work. So use for everything id >500 guess wouldnt work there.
Reply

Logout Mark Read Team Forum Stats Members Help
r Viewtype ids 90 - 100 allowd?0