How to create new Custom View object
I've create a Custom View. Now I want to create a class that has some
Custom View as components (array of Custom View maybe). For example,
something like Button b = new Button(this), how can I apply it for my
custom view?
Because the constructor of custom view is CustomView(Context context,
AttributeSets attrs), and in the new class that I created, I don't have
context or attrs?
Thank you!
No comments:
Post a Comment