A good way to take advantage of the extra space available on a tablet than a smartphone could be put, next to "a common layout", a menu which, in the version for smartphones, should be displayed by pressing a button or by scrolling the screen:
View attachment 41502
This is an example of what Erel probably means and I can agree.
But...
If I wanted (and often we want) create layouts for CLV items or for Dialogs, they should look nice on both devices.
I'm not sure, but in these cases we need to use percentages or set ScaleRate > 0.3 (default), at least 0.75, I think.
You're right, don't answer. There are 10h thread like this from me and 100h questions about this from 10h members.
But I can say the Designer DOES NOT WORK AS EXPECTED.
This is an example of what Erel probably means and I can agree.
But...
If I wanted (and often we want) create layouts for CLV items or for Dialogs, they should look nice on both devices.
PnlStatus.SetLeftAndRight(5%X, 19%x)
PnlStatus.SetTopAndBottom(2%y, 2%y+14%x)
Some of my posts are despised; perfect, then this is my last post.
Maybe you are really confused about the Designer. It works as expected, not as you wanted.
AutoScaleRate - Sets the scale rate. This is a number between 0 to 1. The default value is 0.3.
Value of 1 means that the scale factor is exactly proportional to the device physical size.
Log("Activity (W x H): " & Activity.Width & " x " & Activity.Height)
Log("Image1View (W x H): " & ImageView1.Width & " x " & ImageView1.Height)
Dim bmp As Bitmap = LoadBitmap(File.DirAssets, "Circle.png")
ImageView1.Bitmap = CreateScaledBitmap(bmp, ImageView1.Width, ImageView1.Height)
but I'm so stupid to expect an auto scale as I thought.
in this case, no code is needed, just use the anchors
I know I could use SetTopAndBottom or other,
Well, Ivan, what do you think you should get from the test below?
@LucaMs
klaus said:
I have never said this about the DesignerScripts, but aboute the AutoScale code mudule !!!
I know what AutoScale in the DesignerScripts can do and cannot do.
It is not honest taking a phrase out of its context letting say it something diiferent, and wrong !
It is the second time you are doing this and I had already answered the same.
I hope I don't need to do it a third time !
I ask (MYSELF) why do not show images in the ImageViews directly in the Designer (most likely this is too complicated, complicated as doing the same thing in apps ).My question would not criticize the Designer, as you can see in post #1.
I ask (MYSELF) why do not show images in the ImageViews directly in the Designer (most likely this is too complicated, complicated as doing the same thing in apps ).
Why it is disrespectful? Because I ask to myself? Erel has written that he will not answer, so I must ask to myself! Who else can tell why the images are not displayed in the Designer?and also disrespectful to everyone who try to help you.
Please, read from my first post an tell me when and where I turned this thread...Please dont turn this thread to something ugly
(well, I liked the intention, Luca (precisely "There are simpler ways to get a stretched result and like this no need to take care about different screen sizes but with the designer you can do much more."). Nothing about You)backed by a trio of people through their "Like"s.
I believe the reason why erel dont show images in the designer is because of better performance (less memory...)
isn't that what .gravity is all about?