android - Define and Populate a Layout for multiple activities -


I have an app where I have to add an informational box to many axiom. This box basically happens with LayoutView different TextView and ImageView .

Is that a way to define the whole box in a class and I need it every time?

I could copy-paste the Layout XML code and Layou populae methods for each activity, but I want to avoid it (I really hate the code).

Why not use pieces ? They are reusable.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -