Thanks for the reply and the examples, although I'm not sure I completely
understand how a Navigation compoment relates to a List component, but that
might be caused by me just having started looking into the Royale framework
and coming from a Flex Mobile/Spark List experience.

I rather thought I could try to adapt your 'Adding an item to a Jewel List'
example [1]. Actually, I've taken this example List and specified as its
itemRenderer property an MXML Itemrenderer that adds a graphic to each of
the list items (with the graphic to the left, text label to the right),
using the dataproviding Arraylist data items to specify the graphic to be
displayed in a list item (out of a set of custom .png graphics provided with
the application). The items are renderered OK, but the problem with this
MXML Itemrenderer I've constructed is that whenever the list contains more
items than the list height can contain, the list doesn't handle this by
adding scroll bars enabling the extra items to be scrolled into and out of
view (as it should), but instead each of the list items are rendered to
lower item heights so as to still fit within the list window. But this could
well be caused by flaws in the MXML Itemrenderer I've cooked up:

<js:MXMLItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009";
                                xmlns:js="library://ns.apache.org/royale/basic"
                xmlns:j="library://ns.apache.org/royale/jewel"
                                xmlns:svg="library://ns.apache.org/royale/svg"
                                width="100%" height="36">
    <fx:Script>
        
    </fx:Script>
   
    <j:beads>
        <j:BasicLayout/>
        <js:ItemRendererDataBinding />
    </j:beads>
    <js:Image src="{'assets\\' + placeFlag + '.png'}" y="6" x="10"
height="20" width="30"/>
    <j:Label text="{placeName}" y="6" x="60" />
    <j:Label text="{placeCountry}" y="6" x="180"/>

</js:MXMLItemRenderer>

That is not to say I coudln't use any of your examples, because the app I'm
hoping to migrate also contains icon buttons like those in the TopBarApp
component you've just constructed. Thanks also for the heads up about the
under construction state of code, I'll take that into account.

Best regards,
Ad

[1]  Adding an item to a Jewel List
<https://royale.apache.org/adding-an-item-to-a-jewel-list/>  



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Reply via email to