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

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

Simple file compression in C -

php - Sorting an multidimension array using usort fails -