i'm running into some issues inflating layouts and i wonder whether i have something basic wrong.
i have a ListView with a custom adapter etc, and of course the item View is custom too. i've been creating the item View in code, and everything works fine, including recycling them and all that. great. but i want to move the View into a resource, where all good Android views live, and weirdness is happening. in the ListView's getView(), i get my inflater and inflate the view by ID. the view itself has its own XML file. i can inflate the top view, but i can't find anything by ID, and when asked for its children, nothing comes back. are there funky rules for inflating views this way? is there a convention for how this should be done inside a ListView? thanks -- (abbreviated) XML layout code enclosed... <com.particlebrand.roboto.android.ContactView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:background="#ffffffff" > <!-- the top layout, with clickable user name header and "contact" widget --> <LinearLayout android:id="@+id/contact_top_layout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <TextView android:id="@+id/contact_user_name" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="#ffffffff" android:textColor="#ff000000" android:textSize="18px" /> ... </LinearLayout> </com.particlebrand.roboto.android.ContactView> -- jason.vp.engineering.particle --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---