android - How can I add a layout to my customized view -


I have a class that extends view and I keep my customized view in it In certain phases I want to add a layout to my desired scene.

I have also mentioned some examples, but they think that the same problem is reversed, they have a layout and want

It may be that you expand ViewGroup instead of your class view .

With a ViewGroup you will be able to use addView () to add the inflated layout to your custom view.

Get more information on AddView


Comments

Popular posts from this blog

sql - Find last match with latest inserted name in table -

c# - XML serialize base class without knowing derived class -

Send innerHTML text in URL in JSP -