I am just trying to wrap my head around the Ui Builder and have created a mobile calculator as a test project. While I find it convenient to create nice looking UI’s leveraging functionality like hover etc. I cannot really fully understand the flex-box piece and how to adopt both width and height.
This is the GUI on an iPhone 11 in simulator.
What I want to accomplish is to adapt, with the sale layout, for different resolutions where all graphics is adjusting both in height and width (if needed). However I do get results like the following:
Here (iPhone 6) the buttons do not look like they are scaling and is pressed together as well as falling outside of the screen. The title is not adjusted either. What I want to do is to shrink the all graphics accordingly so I keep the same layout.
I have been searching for tutorials but not being able to find what I am looking for or maybe I do not understand what I should look for.
I would really appreciate some guidance an examples to solve this.
I have very little experience of this structure but really want to start using it. I have been looking for a Tutorial where the UI adjust on all directions to fit into like iPhone11, iPhone6 and iPad Pro or something close to that. Can’t find it.
Maybe someone that understand this could create a tutorial or something?
I really need advise and help to get this working.
I do not know if this is helpful but the uxml and use code is attached.