i have some layout xml that looks like this: == file1.xml == <?xml version="1.0" encoding="utf-8"?> <LinearLayout ...> ... ... </LinearLayout>
I want to include that in some other layout xml, so I do this -- == file2.xml == <include layout="@layout/file1.xml"/> The question I have is how to pass arguments (and refer to them) from file2.xml to file1.xml. So, for example: == file1.xml == <?xml version="1.0" encoding="utf-8"?> <LinearLayout ...> <TextView android:text="@text" android:layout_width="fill_parent" android:layout_height="fill_parent"/> ... </LinearLayout> == file2.xml == <include layout="@layout/file1.xml" text="abc"/> is this possible? tia. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---