hi all:
i want use two button to control list turn left/right one element.
but i got some confuse about how to layout those component.
i use " requestedColumnCount="6" " to set the list width , so in the design model
i only know this list can display 6 element , but i don't know how width it will be.
so i use the "HGroup" to set the layout , the main code is like this way
<s:HGroup x="214"
y="216">
<s:Group>
<s:layout>
<s:VerticalLayout />
</s:layout>
<s:Button label="←"
click="button1_clickHandler(event)"/>
</s:Group>
<s:Group>
<component:SmoothScrollingList dataProvider="{myProvider}"
itemRenderer="myitemdrender.FriendPageItemRender"
id="friendPageList"
mouseDown="friendPageList_mouseDownHandler(event)">
<component:layout>
<s:HorizontalLayout requestedColumnCount="6"
useVirtualLayout="true"/>
</component:layout>
</component:SmoothScrollingList>
</s:Group>
<s:Group>
<s:Button label="→"
click="button2_clickHandler(event)"/>
</s:Group>
</s:HGroup>
you can see i use one HGroup and three group to determine where the component should be.
is almost finish , but i still got problem about how to set those two button at the
middle of the position?
i try to use
<s:layout>
<s:VerticalLayout horizontalAlign="center"/>
</s:layout>
in the first group layout , but seem not working.
and my another question is :
is this a good way to use so many group and hgroup to determine the position ? is there
have any other good way to do it ?
thanks a lot.