UI Toolkit

Reply

Level 3

Level 3
niwrA
Posts: 152
Registered: ‎31-07-2008
Message 1 of 4 (155 Views)

ListPanel on a Panel, and creating a ListPanelItem dynamically

[ Edited ]

Hi,

 

I am currently having two issues:

 

1. Is it even possible to create a Panel that contains a ListPanel?

2. What if I want to create a ListPanel that I configure to show various things using various controls from configuration files. Is this even possible?

3. Why is setting sections required, even if you choose false for showsections?

4. Does the item iteration always have to use a List, or can it also be something like System.Xml.XmlNodeList?

 

I think I can do it in theory, but in practice I'm running into a big brick wall. Perhaps partly because of 1?

Please use plain text.

Level 3

Level 3
niwrA
Posts: 152
Registered: ‎31-07-2008
Message 2 of 4 (150 Views)

Re: ListPanel on a Panel, and creating a ListPanelItem dynamically

So instead of sleeping I continued working on this and will seriously regret tomorrow. Anyway, here's answering the issues myself:

 

1. Yes, no problem. Just don't forget to do an AddChildLast or First ... *doh*

2. Yes, no problem. 

3. The section definition seems critical. In order to handle dynamic numbers, I reset the section definition at runtime to one section with the length of my List. I have showsection = false.

4. I think it has to be a list. So what I did is create a list of XmlNodes instead, which seems to work just fine.

 

So I end the day with a win and a loss - I have the foundations for my dynamic listpanel, at the cost of some serious sleep loss. :smileywink:

Please use plain text.

Level 3

Level 3
niwrA
Posts: 152
Registered: ‎31-07-2008
Message 3 of 4 (142 Views)

Re: ListPanel on a Panel, and creating a ListPanelItem dynamically

I could have known about the way to do the xml nodes sooner, simply by looking at the RSS demo, as that uses the same ...
Please use plain text.

Re: ListPanel on a Panel, and creating a ListPanelItem dynamically

If there's anything else your not clear on, please let us know :smileyhappy: Glad to hear that you got it working!
PlayStation®Mobile Dev Team
Please use plain text.
This widget could not be displayed.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。






Recent News