Hi all
I am attempting to arrange 12 imageviews in a panel and am receiving some unexpected results.
This is the designer script I am using:
This is how it appears on a 10" and 6" device in addition to how it appears in the designer:
The 10" appears to be fine but the 6" version does not fill the screen - nor does it fill the panel in the designer.
Any ideas what I am doing wrong?
Thanks
I am attempting to arrange 12 imageviews in a panel and am receiving some unexpected results.
This is the designer script I am using:
B4X:
ImageView1.SetLeftAndRight(5%x,30%x)
ImageView1.SetTopAndBottom(5%x,25%x)
ImageView2.SetLeftAndRight(35%x,60%x)
ImageView2.SetTopAndBottom(5%x,25%x)
ImageView3.SetLeftAndRight(65%x,90%x)
ImageView3.SetTopAndBottom(5%x,25%x)
ImageView4.SetLeftAndRight(5%x,30%x)
ImageView4.SetTopAndBottom(30%x,50%x)
ImageView5.SetLeftAndRight(35%x,60%x)
ImageView5.SetTopAndBottom(30%x,50%x)
ImageView6.SetLeftAndRight(65%x,90%x)
ImageView6.SetTopAndBottom(30%x,50%x)
ImageView7.SetLeftAndRight(5%x,30%x)
ImageView7.SetTopAndBottom(55%x,75%x)
ImageView8.SetLeftAndRight(35%x,60%x)
ImageView8.SetTopAndBottom(55%x,75%x)
ImageView9.SetLeftAndRight(65%x,90%x)
ImageView9.SetTopAndBottom(55%x,75%x)
ImageView10.SetLeftAndRight(5%x,30%x)
ImageView10.SetTopAndBottom(80%x,100%x)
ImageView11.SetLeftAndRight(35%x,60%x)
ImageView11.SetTopAndBottom(80%x,100%x)
ImageView12.SetLeftAndRight(65%x,90%x)
ImageView12.SetTopAndBottom(80%x,100%x)
This is how it appears on a 10" and 6" device in addition to how it appears in the designer:
The 10" appears to be fine but the 6" version does not fill the screen - nor does it fill the panel in the designer.
Any ideas what I am doing wrong?
Thanks