Anyone know if <merge> works with multiple images: header.xml = <merge xmlns:android="http://schemas.android.com/apk/res/android"> <ImageView android:id="@+id/ImageView02" android:background="@drawable/imagex" ></ImageView> <ImageView android:id="@+id/ImageView01" android:background="@drawable/imagey"></ImageView> </merge>
A constraint of <merge> is that it must be in the XML root tag, so we place the above in one file and then use <include> to import. Another constraint is that it does not work with some Layouts like LinearLayout but the docs do state it works with FrameLayout i.e. <FrameLayout android:id="@+id/FrameLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"> <include android:layout_width="fill_parent" layout="@layout/header" /> </FrameLayout> Oddly enough this traps when displaying/running. Most examples are merging different types but not two images. Any insight on this ??? -- 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