I am working on application which have same header in all activites,in which there are some views in image views, buttons, textviews etc.
Now the The question is i want to use these header views in all the activites,but i do not want to re-code and re-design it in every activity.so is it possible to create a fragment of header views and reuse its ui and functionalities in all other activites.
- if no,then any idea to make it reusable header?
- if yes,then how ?
thanks for the help.!
updates in this question according to my research! i have researched and fond that it can easily acheived by using fragments.but i am still not getting that how? how can i acheive that functionality? according to this: reusable UI in android app
and this:
any links and code would be helpful!
.
stackoverflow.comm
No comments:
Post a Comment