Sep 11, 2014 Replies: 4 This simple example shows how to add & access views (buttont, labels, imageviews, scrollviews) to get a nice & good looking layout. I don't use dip (except at one code line) to have a "fixed & easy to control" layout". Looks good on phones & tablets. The example shows how to create a nice layout without using other libs (which do it much better but there is no learning effect) . Attachments PlayWithViews.zip PlayWithViews.zip 71.8 KB · Views: 1,013 Click to expand...
This simple example shows how to add & access views (buttont, labels, imageviews, scrollviews) to get a nice & good looking layout. I don't use dip (except at one code line) to have a "fixed & easy to control" layout". Looks good on phones & tablets. The example shows how to create a nice layout without using other libs (which do it much better but there is no learning effect) .
Erel B4X founder Staff member Licensed User Longtime User Sep 11, 2014 #2 The main problem with using percentage for the layout is that the layout is stretched when you run it on larger devices. In most cases this is not the best way to scale up your layout. A better solution is to use anchors together with the auto-scale feature.
The main problem with using percentage for the layout is that the layout is stretched when you run it on larger devices. In most cases this is not the best way to scale up your layout. A better solution is to use anchors together with the auto-scale feature.
KMatle Expert Licensed User Longtime User Sep 12, 2014 #4 I know that, Erel. I wanted to show how to add views by code and how to access/change them.