1

We can merge layout using include tag in xml

 <include android:id="@+id/all_tab" layout="@layout/all_tab"/>

How to add include tag from code?? Because i want to change it in run time. Thanks.

user430926
  • 4,017
  • 13
  • 53
  • 77
  • 1
    Refer this http://stackoverflow.com/questions/3195668 – Sankar Ganesh PMP Dec 07 '10 at 11:01
  • did you reached your destination??? – Sankar Ganesh PMP Dec 07 '10 at 11:44
  • LayoutInflater inflater = (LayoutInflater) getBaseContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); View view = inflater.inflate(R.layout.all_tab, null, true); layoutContent = (LinearLayout) findViewById(R.id.LayoutContent); layoutContent.addView(view); It's working with this code.. Thx.. – user430926 Dec 08 '10 at 02:08

0 Answers0