Activity.Addview panel

SCIS

Active Member
Licensed User
Longtime User
Hello,

We want to add a panel on our activity that starts 10%x from the left side and has a width of 80%x, starts at 50dip height and is 80%y high.
B4X:
panels(i).Initialize("panels")
      Activity.AddView(panels(i), 10%x, 50dip, 80%x, 80%y)
This is the code we use for it. Now the problem is, everytime we debug it, the panel starts at the very left side of the screen. It doesn't matter what value we assign to set the left border of the panel, it will always start at the very left side of the screen.

Can someone please help us out.

Greets,
SCIS.
 
Last edited:

SCIS

Active Member
Licensed User
Longtime User
Solved

Guys, I found the answer, the module SlidingPanels adjusts the position of the panels, that's why it is always placed to the left side.
If you want to change it you'll have to change the position in the module itself.

Grts,
SCIS.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…