I have class that extends View.
private class Draw2D extends View{ public Draw2D(Context context) { super(context); }
These Youtube tutorials do just this;
Link: https://buckysroom.org/videos.php?cat=6
Just watch the tutorials 71, 72 and 73 and it should work.