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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -