flex - have any idea how to set the layout? -


I want to use two buttons to control the list / one element on the left side

< P> But I got something

I use " Requested column number = 6" "to set the list width, so in the design model

i only know that this list can display 6 elements, but I do not know how much that width will be.

So I use "HGroup" to set the layout, the main code is like this

   & Lt; / S: Group & gt; & Lt; S: group & gt; & Lt; Component: SmoothScrollingList Detector = "{myProvider}" itemRenderer = "myitemdrender.FriendPageItemRender" id = "Friend's Lease" mouseDown = "Friend -List_MouseDownHandler (Event)" & gt; & Lt; Component: Layout & gt; & Lt; S: use horizontal layout, requested column = "6", virtual layout = "true" /> & Lt; / Component: Layout & gt; & Lt; / Component: SmoothScrollingList & gt; & Lt; / S: Group & gt; & Lt; S: group & gt; & Lt; S: Button label = "→" click = "button2_click handler (event)" /> & Lt; / S: Group & gt; & Lt; / S: HGroup & gt;  

You can see that I use one HGUP and three groups to determine which component should be.

It's almost finished, but I still have problems

Two buttons in the middle of the situation?

I

  & lt; S: layout & gt; I try to use & Lt; S: Vertical layout horizontal align = "center" /> & Lt; / S: Layout & gt;  

The first group is not working but in the layout.

And my second question is:

Is there a good way to use it to determine the many HGPP groups and groups? What

Is there any other good way to do this?

Thank you very much.

You should use attributes in those cases, so that the code can be cleaned up a bit more; So it is also visible where such additional properties are related. For example, for the first group, simply type:

   & Lt; / S: Group & gt;  

However in your case it only makes less sense to use an additional group element inside a different element.

  & lt; S: HGroup x = "214" y = "216" Vertical Alliance = "Medium" & gt; & Lt; S: Button label = "←" click = "button1_click handler (event)" /> & Lt; Component: SmoothScrollingList id = "friendPageList" Dataprider = "{myProvider}" itemRenderer = "myitemdrender.FriendPageItemRender" mouseDown = "Friend_LizDownYahler (Event)" & gt; & Lt; Component: Layout & gt; & Lt; S: use horizontal layout, requested column = "6", virtual layout = "true" /> & Lt; / Component: Layout & gt; & Lt; / Component: SmoothScrollingList & gt; & Lt; S: Button label = "→" click = "button2_click handler (event)" /> & Lt; / S: HGroup & gt;  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -