I have question on what is the best approch to take.I have a header view in all my screens of the app.
So is it best to have the setContent of the header view and then adding the views by inflating them in the sub-class activity as below Base extends Activity{ private Linearlayout mHeader; public void onCreate(Bundle b){ setContentView(R.layout.header); mHeader = (LinearLayout)findViewById(R.id.myheader); } } MyView extends Base{ public void onCreate(Bundle b){ m_Inflater = LayoutInflater.from(this); ViewGroup layout = (ViewGroup) m_Inflater.inflate(R.layout.actual_layout, mHeader ); } } Or is it ideal to have the include tag in the xmls and setContentView at once. -- Thanks and Regards Gurudutt P.S. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---