I have a Form that take a BoxLayout, to be able to add different custom controls one after the other in the Y-AXIS
but there is a Component that I need to add in the bottom of the screen, but as I'm using the BoxLayout so I can't fix it size to bottom of the screen
So I think that I can set that Container of the control to fill the parent Form
So the question is how to make Container fill the parent Form in LWUIT
Thanks in Advance
Why don't you try to put a BorderLayout in the Form?
You can put Containers in CENTER and SOUTH positions, and they let you place your controls as you want (BoxLayout Axis Y in the center).
Is that what you want?
Related
im new to ui5 so i apologize if my question is too easy. i have a Generatic Tile that supposed to display events from Odata v4. the problem i have is that this tile is required to be in the middle of the screen(knowing that there is nothing else around). i tried using FlexBox(and many other classes) and i was only able to center it, but not to get it in the middle of the screen. is it possible to do it using only my View.xml?
enter image description here
Maybe try to wrap your Tile with a VerticalLayout or VBox (which extends FlexBox) and set height='100%' justifyContent ='Center'
Something like:
How to vertically center align my form container in openui5
or this:
https://sapui5.hana.ondemand.com/sdk/#/entity/sap.m.FlexBox/sample/sap.m.sample.FlexBoxBasicAlignment
Kind regards
Sebastian
I want to create chat window, and the messages must appears from side. So now I have the system with messages that placed inside of UI element with Vertical Layout Group, but I can't move the messages in horizontal axis, because position of messages is driven by Vertical Layout Group.
I had tried to do it by changing paddings but it works very ugly and I can't add messages into chat window and move them at the same time.
So is there a way to create custom appearance of messages in chat window that driven by Vertical Layout Group?
Instead of putting the labels directly into the VerticalLayoutGroup, put each of them into a seperate container, called ChatLine. ChatLine is just an empty GameObject with a RectTransform. Those ChatLines you put into the VerticalLayoutGroup.
VerticalLayoutGroup
ChatLine
Label
ChatLine
Label
VerticalLayoutGroup will arrange the ChatLine objects, putting one below the other. How you arrange the Labels contained in each of the ChatLines is up to you. You can move them horizontally as you please to create the effect your want.
Vertical Layout Group has its limitations. You can look for more properties in VerticalLayoutGroup class via scripting but most likely you just have to create your own layout so you will have full control on position of every element.
I want to create a PictureScrollField using some images in Blackberry.By default it is displayed on the top of the screen with the given width and height.
But if we want to display the entire one at certain coordinates say(x,y),then how to align them.
add the picture scroll field in a horizontal field manager and align the manager
All the screens I've designed for BlackBerry so far I set the position coordinates statically, without the need of a vertical scroll.
I do not understand how to use this vertical manager to scroll and see the list.
We have to create vertical field manager as follow
VerticalFieldManager manager=
new VerticalFieldManager(
Manager.VERTICAL_SCROLL |
Manager.VERTICAL_SCROLLBAR );
to scroll fields in vertical field manager.
The following link will also help you.
How to set a ScrollBar to the VerticalFieldManager in Blackberry?
I want to create a custom panel/layout and it's seeming pretty impossible at this point. I need the components to start in the upper left corner and stack downward until they fill the panel vertically, then wrap to the top of the next column and so on until they eventually fill the screen and create a horizontal scrollbar. After an entire day of trying I've decided it's only possible by abusing GWT (and I assume the whole web browser) adding crippling complexity and terrible performance. Please let me know if I'm missing something and layout like this is possible. Thank you!
Lame solution: Have a small (almost invisible) AbsolutePanel where every string is displayed within a div and measured (getClientWidth/height()). Then each panel can calculate it's size based on the strinsg, borders, padding, etc. it contains. Once each panel knows it's size, they can be layed out relative to the sizes of the other panels in the contianer.
Check out FlexTable, which allows you to specify the row,column for the widget to be added