Skip to Content
author's profile photo Former Member
Former Member

problem with auto layout rendering

hi webdynproites,

iam getting problem in layout rendering when

ex: i have martix layout for parent container,in that i have 4 containers,

2 in first row,

2 in second row,

in each container (child) i have 3 fields

<label> <input field><text view>

some times my model not having text view values

when rendering layout by running ,that containers are moving left or right depends on text views values

****imp: how can i restrict the movement.

plz help

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2005 at 03:17 PM

    You don't see TextView elements in view if "text" property is empty.

    Probably layout of the child containers is "FlowLayout". Change that "layout"

    to GridLayout and set "colCount" to 3. They should be done in same order -

    you would see "colCount" only after selecting a GridLayout.

    Look at this tutorial for input form ui design.

    http://help.sap.com/saphelp_nw04s/helpdata/en/99/34be5f4ee2974a8e7e127c4aeacd9b/frameset.htm

    I suggest you to read some material on Layout Managers. You never can design good UI without

    understanding the Layout Managers.

    Good luck!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2005 at 03:34 PM

    Hi Hari,

    Matrix Layout has this behaviour that you see in your application.

    So Change the layout of parent container to Grid Layout with Col Count 2.

    This will ensure that you have proper vertical alignment.

    However, if you want to fix the layout to certain width, set the width of the Parent Container and then set the width of the child container to certain fixed width.

    Hope this helps.

    With Best Regards,

    Shubham

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2005 at 07:33 PM

    Try setting the (minimum) width of the MatrixLayout cell to some pixel value, see IWDMatrixData.width property.

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.