Common buttons or tabs below for each action

I want to add some shortcuts or buttons at the bottom of each screen / action. I understand that we can do this using framelayout / relativelayout, a tab widget, etc.

Since I need this for every action, do I need to write an XML layout for each action and button action again and again? Is it possible to refer to the layout and actions at the click of a button, etc., So what is the same code redundancy?

+4
source share
1 answer

Hello,

You can use the xml tag:

<include layout="@layout/commonfooter" /> 

include everything you have in the commonfooter.xml layout file in another xml layout.

Hope this helps!

+11
source

All Articles