i have set a floating action button on my app but when its on mobile its gets on the position but i in tablet or portrait mode in the phone its gets in the middle of the screen how to fix that?
2 Likes
Vaibhav
(Vaibhav)
June 5, 2020, 9:29pm
#3
I guess you should play with Screen’s width and height blocks to get exact FAB’s position you want.
These topics may help
This topic will contain a table of contentsHello, I was going to sleep yesterday when I thought of a way to centralize the FAB (Floating Action Bar), so, mathematically, I thought the following way (Follow step-by-step).
Getting the Width of the Screen
To get the width of the canvas is easy, just add an object (I’ll use an arrangement) and set its width to fill all the available content, it is important that this object has no obstacles and that can fill the entire width of the screen:
[image] …
I want to ask community members if someone knows whether this type of Bottom Navigation Bar can be made in Kodular or not.
[mio-design_assets_1PrVPyUvR5HvW5KcvIIy9s3T52Vy9jwN9_bottom-app-bar-intro]
because I tried making it with bottom navigation bar and fab component it works well and somehow looks like this but the problem is fab button does’nt stick to centre of the screen and if I set it’s margins according to my device it comes to centre but when I tested on another device fab’s position…
1 Like