In the same way that the Canvas1.Initialise() can obtain a Views background I want to implement this into my library too but I don't know how to share or allow access. See code comment.
Libray code example
B4A code example
Libray code example
B4X:
public class MyViewWrapper extends ViewWrapper<MyiewWrapper.MyPanel> {
...
public class MyPanel extends View {
public MyPanel(Context context) {
super(context);
}
@Override
protected void onDraw(Canvas c) {
...
}
}
B4A code example
B4X:
Dim v as MyView
Dim canvas1 as Canvas
...
v.Initialise("blah")
canvas1.Initialise(MyView) ' ** How to implement this part?
Last edited: