How can I get the Left/Top/Right/Bottom positions of a view as set by the user?
For example, taking this basic snippet from Erels GameView source code:
Now, in the B4a code the user adds the View as such
I need to find out the position of the View from within the libray but I don't know how?
Any pointers please?
For example, taking this basic snippet from Erels GameView source code:
B4X:
public class DummyWrapper extends ViewWrapper<DummyViewWrapper.MyPanel> {
.....<<< SNIP >>>.........
public static class MyPanel extends View {
public List sprites = new List();
public MyPanel(Context context) {
super(context);
sprites.Initialize();
}
Now, in the B4a code the user adds the View as such
B4X:
gv.Initialize("gv")
Activity.AddView(gv, 20%x, 20%y, 70%x, 70%y)
I need to find out the position of the View from within the libray but I don't know how?
Any pointers please?