NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 9 10 11 12 13 … 93 Next »
Multiple lists like in Search Screen

 
  • 0 Vote(s) - 0 Average
Multiple lists like in Search Screen
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#1
2012-05-25, 02:30 AM
How does one create and use multiple parallel lists in the same screen like in the Search screen? What strings do you pass in for the constructor 'elements' to specify one of the multiple lists (usually "View" and "Item" when there is just one list)?
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2012-05-25, 03:22 AM
Here is the construction of the lists from Search screen:

Code:
// first letter
            listFirstLetter = new UiList(this, "FirstLetter", "View", "Item", new Hashtable(), skinHelper, UiList.ViewMode.LIST);

            // show names
            listShowNames = new UiList(this, "ShowName", "View", "Item", new Hashtable(), skinHelper, UiList.ViewMode.LIST);

            // show times
            listShowTimes = new UiList(this, "ShowTime", "View", "Item", new Hashtable(), skinHelper, UiList.ViewMode.LIST);

If you take a look at C:\Users\Public\NPVR\Skin\Default\Search\Search.xml, you'll see a section for each list. The name element is the most important. It's appending "ListView" "ListItemNormal" "ListItemSelected" to find the element definitions it needs.

Hopefully that answers the question?
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#3
2012-05-25, 01:14 PM
Yes it does. Thanks!
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#4
2012-07-19, 01:24 AM
Is it possible to have multiple/different list view modes? That is, have one ViewMode.LIST and one ViewMode.HORIZONTAL_ICON? I can't seem to get this to work (both lists appear to take the 'LIST' mode).
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#5
2012-07-19, 01:51 AM
cncb Wrote:Is it possible to have multiple/different list view modes? That is, have one ViewMode.LIST and one ViewMode.HORIZONTAL_ICON? I can't seem to get this to work (both lists appear to take the 'LIST' mode).
I didn't have anyway to test this in a hurry, but looking at the code, I cant see any reason why you couldn't have the different lists using different view modes. It should work.
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#6
2012-08-06, 05:29 PM
I can't get this to work. Could you please take a look at my test plugin (attached)? The popup has 2 lists: the first is a normal list and the second is supposed to be a "horizontal icon" list. The second is always a "normal" list even though I set the appropriate view mode in the constructor. If I set the view mode again after I add items, then the second list disappears altogether. I apologize in advance if I'm making a silly mistake. Thanks.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2012-08-07, 04:27 AM
I was able to get your plugin to go.

You'd need to have nodes in your skin file called "IconView" and "IconItem". This style of list doesn't prefix the list name onto the elements. I couldn't remember this until I tried it though. It should be fine if you have no more than one icon view list.
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#8
2012-08-08, 09:11 PM
This works for me - thanks.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
« Next Oldest | Next Newest »

Users browsing this thread: 3 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  is there a service?method which returns listings for multiple channels? reven 16 6,794 2022-04-11, 04:30 PM
Last Post: mandai
  Images in lists using a lot of memory cncb 4 3,977 2015-11-12, 12:02 AM
Last Post: sub
  Multiple genres in npvr.db3 bgowland 5 2,813 2013-04-16, 09:53 PM
Last Post: ACTCMS
  Roku channel for NPVR with Search & Schedule ioan 12 11,605 2013-03-31, 01:34 AM
Last Post: btpoole
  How to prevent default screen background? cncb 28 8,207 2012-05-16, 08:28 PM
Last Post: ACTCMS
  Concatenate Name and Subtitle in Pending Recordings Screen Northpole 0 1,170 2011-09-20, 02:54 PM
Last Post: Northpole
  Settings config screen for class IEventNotification plugin imilne 9 3,440 2011-09-17, 06:06 PM
Last Post: sub
  @channelIcon not available in all recording screen options Northpole 2 1,759 2011-07-29, 04:59 PM
Last Post: Northpole
  Lists: HORIZONTAL_ICON and VERTICAL_ICON imilne 5 2,427 2011-06-02, 06:55 PM
Last Post: imilne
  Multiple views for a single list imilne 18 5,381 2011-04-22, 11:06 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode