How to Modify the standard List view?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Balinus Offline
Skilled Skinner
Posts: 1,121
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #1
Hello!

I'm trying to see how to modify the standard "List" view (see screenshot below). However, I can't figure out where this list is placed in the xml files. Is this list hardcoded? Basically, I just want to add "duration" after the title track and maybe align it to the left instead of right.

[Image: 6989469598_baff809f31_z.jpg]
screenshot015 par Borghor, sur Flickr

Thanks for any help!
find quote
Hitcher Offline
Skilled Skinner
Posts: 11,178
Joined: Aug 2007
Reputation: 105
Location: Eastleigh, UK
Post: #2
What skin are you modifying there?
find quote
Balinus Offline
Skilled Skinner
Posts: 1,121
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #3
It's a modification of Shade. Wanted to make it compatible with Eden and now I feel like adding new stuff, etc... Smile
find quote
butchabay Offline
Skilled Skinner
Posts: 3,847
Joined: Mar 2010
Reputation: 75
Location: Planet Crematoria
Post: #4
Set Debugging from false to true in addon.xml and go to the list view you should see the name.xml ...
find quote
Balinus Offline
Skilled Skinner
Posts: 1,121
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #5
thanks!

then, it's in MyMusicNav.xml, fixedlist "50". But strangely, can't find id="50" in MyMusicNav.xml, nor in ViewsMusicLibrary.xml
find quote
Hitcher Offline
Skilled Skinner
Posts: 11,178
Joined: Aug 2007
Reputation: 105
Location: Eastleigh, UK
Post: #6
Look in the ViewsFileMode.xml.
(This post was last modified: 2012-05-03 22:15 by Hitcher.)
find quote
Balinus Offline
Skilled Skinner
Posts: 1,121
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #7
Not there... tried all Include*.xml fileS... :/

SVN repo is here if that helps : http://code.google.com/p/shade-xbmc-eden...browse/[hr]
ok! found id="50" in DialogAlbumInfo.xml


Thanks guys, I'll see how I can add duration and chanhe the alignment.
(This post was last modified: 2012-05-03 22:25 by Balinus.)
find quote
wyrm Offline
Skilled Skinner
Posts: 978
Joined: Nov 2007
Reputation: 10
Location: Perth, Australia (GMT +8)
Post: #8
(2012-05-03 22:17)Balinus Wrote:  Not there... tried all Include*.xml fileS... :/

SVN repo is here if that helps : http://code.google.com/p/shade-xbmc-eden...browse/[hr]
ok! found id="50" in DialogAlbumInfo.xml


Thanks guys, I'll see how I can add duration and chanhe the alignment.
Balinus,

No that is not it, what you want is "CommonRootView" include in the ViewsFileMode.xml. Take a look at the file from line 58
PHP Code:
<control type="fixedlist" id="50"
The id="50" is your view id.

Wyrm (xTV-SAF)
find quote
pecinko Offline
Donor
Posts: 3,847
Joined: Dec 2008
Reputation: 52
Location: Prague / Belgrade
Post: #9
As a general advice - study your includes.xml

It will probably contain code that is (repeatedly) used in various windows with <include> function as well as other XML files (include file="..") with further code. You may want to organize them differently so it makes sense to you.

My skins:

Amber
Quartz

find quote
Balinus Offline
Skilled Skinner
Posts: 1,121
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #10
(2012-05-04 04:03)wyrm Wrote:  No that is not it, what you want is "CommonRootView" include in the ViewsFileMode.xml. Take a look at the file from line 58
PHP Code:
<control type="fixedlist" id="50"
The id="50" is your view id.

Wyrm (xTV-SAF)

oh great, that was it! Smile Thanks!

[Image: 7141854347_ef91bc6b69_z.jpg]
screenshot067 par Borghor, sur Flickr


(2012-05-04 11:46)pecinko Wrote:  As a general advice - study your includes.xml

It will probably contain code that is (repeatedly) used in various windows with <include> function as well as other XML files (include file="..") with further code. You may want to organize them differently so it makes sense to you.

You wouldn't believe how much time I lost before I understood that a lot of things were "hidden" in the includes*.xml ! Smile

Thanks for the advice. I was beginning to think it might be a good idea to organise things differently. Especially the ViewsVideoLibrary.xml which contain 15 000 lines of code! I think I'll separate each view into a different file.
(This post was last modified: 2012-05-04 15:22 by Balinus.)
find quote
Hitcher Offline
Skilled Skinner
Posts: 11,178
Joined: Aug 2007
Reputation: 105
Location: Eastleigh, UK
Post: #11
This might come in handy -

Debugging/skinning aid for any skin
find quote
Balinus Offline
Skilled Skinner
Posts: 1,121
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #12
Thanks! Debuggrid is nice to have! How often did I changed a position by "2" a a time and looked by eye the "level"! Smile
find quote