Hi everyone, i want to share with you this example project, that is a slightly modified version of this one.
Maybe can be useful to someone else.
It's adapted to be an horizontal panel scroller, that correctly center the loaded layout in the panels.
I needed to draw a bitmap rotated from the upper-left corner, not the center of the image as the canvas DrawBitmapRotated function does. After looking up the math and coding this again for the I-don't-know-how-many time, I decided to post it here so I could find it quickly in the future, or...
In the designer I've set the padding, horiz align to "center_horizontal", and vert align to "center_vertical".
And in my activity_create:
'......................padding: left, top, right, bottom
lblCard1.Padding = Array As Int(10dip,10dip,10dip,10dip)...
Hello, please apologize my english, i dont have too much experience in B4A, my question is:
I have an Activity, with a Layout, the Layout has an image (for a logo) some labels and edittexts to enter information, and a button at bottom. Wich is the EASY way to center the labels on screen to see...