Gap in UI of Border layout in codenameone - lwuit

I try to make a frame having border layout.
In it i have 3 container- top, center and bottom . all three container has 3 different type of background. but when i see them there is little gap between these layouts which makes UI little separated and not looks good.
Please help me that how can i consume these gaps and my container looks merged.
Thanks in advance...
Please check this image. it explains u gap. i have mentioned it in red color. please help.

Make sure to set the margin for the Containers to 0. A screenshot/code might be helpful to pinpoint this.

Related

Flutter Responsive Grid with Cards (screenshots)

I am very new to flutter and modern programming languages at all. At the moment I am working together with someone in order to create an app.
We are having problems with the layout of the grid and cards with different screen sizes and orientations.
Vertical Screen Screenshot
Horizontal Screen Screenshot
As you can see, the cards are messed up as soon as the screen width is too high. I don't have access to the source code right now, as the person programming it, is not available at the moment.
I read a lot about different techniques to build a card grid like that in a responsive way.
My guess the problem is, that the cards are not in containers with a fixed size. If they were, the pictures / buttons and texts inside that container would always look the same. Is that assumption correct?
Then my other idea was to use ResponsiveGridListBuilder to solve the problem that too few cards are shown in horizontal mode.
But as I said ... I am a newbie in flutter, so if any of you could make suggestions, I would be happy!
If possible, some code as an example would also help a bunch.
So far the programmer only tried different calculations of the cards in comparison to the screensize, but this didn't help as you can see.
Cheers!
I think it's better you use Wrap to fill the Row even in horizontal or vertical screens. but if i was in your shoes i would develop the items that are suitable and has const size for vertical and horizontal sizes, and let them to fill theirselves in the row depends on the width screen size that it has.
if you didn't understand what i mean i can explain it more my friend :)
happy coding...

Rounded borders on SliverAppBar in flutter

How do you make rounded bottom-corners on a SliverAppBar?
I know of 2 ways, but they just don't quite cut it.
1: To use "shape: ContinuousRectangleBorder". The reason this doesn't cut it, is because it's not Circular, but this weird square-circle thing, so it doesn't look the right way. If it's possible to make it with this, and still retain the roundness to it, then please comment that :)
2: To make a container with rounded corners in the SliverAppBar. This is not quite it, because then when you scroll it disappears really early, and you just left with this empty white space in the top of the screen.
If you have any idea, please help. And remember this is a SliverAppBar, not a normal AppBar, there it would be easy.
The first way is the better and recommended way.
You can use RoundedRectangleBorder instead of ContinuousRectangleBorder
You can also visit: https://api.flutter.dev/flutter/painting/RoundedRectangleBorder-class.html
You can also check: https://api.flutter.dev/flutter/painting/CircleBorder-class.html for CircleBorder

UITableViewCell Background stretching

I have a problem in Swift with UITableViewCell background image. Let's say that it shows quite fine one iPhone5 but on iPhone 6Plus it is stretch and thus it looks bad. This is probably due to Aspect fill or something which I really couldn't manage to change and achieve what I want so would be the best if someone could poke sample code I am providing as well as image how it should look, so anyone can check it out and maybe give me some hint or tip or sample code or even fixed demo version.
So here it is:
Note that on left side there is a curve (like half a circle) around right side of icon. On bigger phones or tablet, that curve gets super stretch thus completely destroying the look.
Demo code link
Thanks all in advance for any help. I am pretty stuck with this one.
You can stretch an image while preserving the aspect ratio of a portion of that image using slicing. Xcode offers a graphical interface for doing this. The idea is that you decide what parts of the image are allowed to stretch and which aren't.
https://developer.apple.com/library/ios/recipes/xcode_help-image_catalog-1.0/chapters/SlicinganImage.html

Struggle with the Interface Builder to setup my App-Layouts

The main problem is between switching 3.5" and 4" There are 2 pics they show exactly what my problem is.
You see at the second picture the UIImageView shrink a bit. This is not what I want. The better look is if the textView will scale down and maybe if the content is to big get scrollable.
How can i solve this? Thanks in advance.
I highly recommend you have a look at this link.
tutorial explaining autolayout.
From what i can understand from the images, you should fix the imageview's height
and edit the height of the the textview so that it have values less than of its current height
inorder to do so you can click the height constraint click the gear picture and edit it

Constraints issue in Xcode

I'm having some issues with the constraints in my app. Here is how it looks on the iPhone 4 (that's how i want it to look, and how i usually setup my interface, is this the proper approach or not?)
Now, when i switch to the iPhone 5 screen it looks like this
and as you can see, the blue dots (which is UIButtons) are not placed where i want them to be. I made my constraints rely solely on the right side of the view (since that is the one re-sizing, i found that in order for you'r views to align themselves accordingly, it doesn't help to align them to the left side). I don't really know how to fix this. I am finding this new iPhone screen to be a real pain in the arse. Any good advice on how to work with this new screen without a lot of headache would be appreciated :)
Thanks on advance
It looks to me like the are still the same distance from the right side of your view, as you said you set them to be, while the background has stretched to fit the new size. I suspect it's actually the background that isn't doing what you want it to do (keep the same aspect ratio and show more stuff on the left), or try keeping the buttons relating to left and right to stay aligned with the stretched background image.