Thursday, April 25, 2013

[android help] reuse header ui design and functionality in all activities


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:


reusable ui with fragments


any links and code would be helpful!



.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...