0

I have a TableLayout in "action.xml" and i have another file "grid.xml" so i want to bind TableLayout from grid.xml class file so how can i do this one?

Thanks, @nag.

nag
  • 920
  • 6
  • 27
  • 51
  • 1
    just check [this](http://stackoverflow.com/questions/2732682/simple-example-of-merge-and-include-usage-in-android-xml-layouts) out – Hanry Aug 05 '11 at 10:54

2 Answers2

0

you can import the xml file into the another one like this way

<include  layout="@layout/mylayout" android:id="@+id/id" />
Pratik
  • 30,639
  • 18
  • 84
  • 159
0

you can include one xml file into another xml file thru:

<include 
    android:id="@+id/header" 
    layout="@layout/xml_file_to_include" />
Vineet Shukla
  • 23,865
  • 10
  • 55
  • 63
  • where you want this view to appear.....use this tag just like as other xml tags like Button, EditText etc.... – Vineet Shukla Aug 05 '11 at 10:46
  • when i use this include tag at starting of XML means after LinearLayout it overrides existing xml and shows included one? – nag Aug 05 '11 at 10:48