how to design this below UI interface in codename1 - user-interface

/home/benjaminz/Pictures/Screenshot from 2020-02-15 10-01-31.png

That's a really trivial UI.
It can be implemented in multiple ways. E.g. the top line can be tabs with tabs on TOP mode. This will implicitly swap all the lower content for you.
You can place the tabs in the center, add four tabs and the content for each one. In that case you will need a new banner for each page (indicating the sale). Below that you just have a scrollable grid layout that's trivial.
Alternatively the top can be a row of buttons either with grid layout or BoxLayout.X_AXIS.
The page in that case would be a box layout on the Y axis.
The present is a FloatingActionButton style component.
The content would be a grid either way.
Each element would be a lead component. With a parent container in a layered layout containing two children One is a border layout containing the image layout in the center and a box y in the south containing both labels. The second one is a top/right aligned flow layout with the discount label.

Related

two labels horizontally in tableview?

I would like to have two labels in my tableview.
but the label resize option is disabled.
How to have the two labels horizontally?
Select UIlabel instead of the cell and then you can set Auto resize like follow.
You may need AutoLayout and Custom Tableview Call. Use two different labels, e.g. one for username (left aligned text) and another for garbage text (right aligned text).
Now, set Content Compression Resistance Priority for one of both label, according to your requirement for data visibility when there is long texts in user name.
Look at these snapshots:
Labels with default content compression resistance priority
I changed content compression resistance priority for label blablabla blablabla, from 750 to 749.
Result is:
For more details see Apple document: Setting Content-Hugging and Compression-Resistance Priorities
Drag a horizontal UIStackView from object library and set it's constraints like this inside the cell
//
drag 2 labels inside it and make the distribution .FillEqually
//
Are you sure you have selected Label?
If you know about Layout constraints, it will be easier than this auto resizer.
Label 1==> Set Leading, Top & Bottom constraints to SuperView. Set Trailing constraint to Label2.
Label2==> Set Trailing, Top & Bottom constraints to SuperView. Set Trailing constraint to Label2.
Now, after this, it will show Red error arrow. Now, you have to decide which Lable width is a priority. After deciding, select that Lable and set Horizontal Content Hugging to 251(High) and Comprehensive to 751(High). Also, change lower priority label Content Hugging and Comprehensive to 249 and 749 respectively. Now, Red error arrow will not be shown and in the cell it will show all text in both labels without and cut.
if you want a easy and quick fix for it, implement a stack view inside the tableview cell. You can change the stackview as you want and also you dont have to worry about applying constraints.

How can I draw a layout in Xamarin Forms similar to this image?

This is Layout I'd like to draw in my ContentPage(ListView is just added)
I tried to use a Grid with a row and two columns in which to place two BoxView inside the first one a further Grid with 3 rows and two columns for the Label in the second Box a Label but the result was disappointing
There are a few options. You can use Grid with Margin and Padding properties so the contents won't be too close to one another. Or you can use AbsoluteLayout or RelativeLayout so you can position every single elements as the way you want to. You can read the documentation for layouts for more information.

How to have grid layout components with different cell heights in Unity

I am trying to build a scene in my 2D game which has a panel whose elements are arranged as in this image:
The ScrollRect should dynamically add rows after users provide values to the InputField, select an option from the Dropdown, and then click the Button. This all works fine, except that the viewable area of for the ScrollRect has the same vertical size as its siblings within the parent panel.
This happens because the GridLayoutGroup of the parent panel requires the child cell sizes to be specified, and if I specify a value which makes sense for the top two panels it is too short for the ScrollRect. Putting a ContentSizeFitter on the parent panel does not help (also, despite Unity warning against it, there is a ContentSizeFitter on the content of the ScrollRect since without one the newly added rows will not appear when scrolling).
So my question is:
what do I need to do to allow the vertical sizing of the children of the top level panel to be based on their sizes, when one child's vertical size will change dynamically?
Thanks!
For grid layout you cannot control the cell sizes dynamically . Instead you can use horizantal / vertical layout groups where you can find an option control child size . And as mentioned in above ans add Layout element to child component and adjust the sizes
Both #Programmer and #Salma572 answers are true. If you want that size to be a fixed number or pixels, use a LayoutElement. However, It doesn't seem you can use a scale (in percent) or anything else dynamic.
It's a shame but you'll probably need to write a script.
It is possible. Attach Layout Element component to each child GameObject. You can then dynamically change the size of each child GameObject by modifying the Layout Element's Preferred Width and Height variable.

Irregular layout in wp7 what can i do?

See this Chart
rules:
car1 car2
car3 car4
If news has image then use car1 and car3 layout ;not image ,use car2 or car3 layout. If news has large image then it height equal car1 height + car3 height or car2 height+car4 height
My question: how use listbox dispose the Irregular layout in WP7 ?
There is no straight forward answer to your problem. Shortly, you cannot do it readily. That is there is no "irregular" layout manager with the standard libraries (e.g. something like Grid or Stackpanel). Perhaps there is 3rd party library out there but i am not aware. If there is nothing out of the box, you have 2 options:
Make each listbox item a 2x2 grid and then have some logic behind for hiding content of a cell when an adjescent cell grows its rowspan to 2. Vice versa when a big tile becomes a smaller one then you have to change the rowspan and make the hidden tile visible again. I am taking about collapsing or making visible here as an effect. But, you could of course remove the tile and append it to the end of the list. There are many options on how you want your list to behave.
You could consider using a WrapPanel (from silverlight toolkit) inside a scrollviewer to achieve a similar effect. Again, you would have to do some work here as well for reorganizing the container.

Grid on view in Lotus Notes 7

In the view propreties I set Grid - Dashes and Dots , color Black. But the grids are only horizontally. I want both vertical and horizontal.
The header style is Beveled. Thanks!
Native Notes applications cannot produce vertical dash-dots grids to simulate a grid. A View in Notes is record (or document) oriented. The grid setting in the view appears in version 8+. I tested dash-dot and it appears to be there, if you increase your line height it should be visible. The dash dots appear to be standard and not variable to font size.
It depends on the first column of the view, if it's not categorized, both vertical and horizontal grids are shown. As soon as you change the column to categorized, the view only shows the horizontal grids.

Resources