Hi, I need to create a screen with two ListViews and a TextView in between them. Both List Views need to display two independent sets of images. I have created the main XML layout fine (given below) but I am not sure how to create the screen with both of the lists populated with images.
main.xml (with both the lists and the text view) <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ListView android:id="@+id/maincategories" android:layout_height="fill_parent" android:layout_width="48dip"/> <TextView android:id="@+id/text" android:layout_width="0dip" android:layout_weight="1.0" android:layout_height="wrap_content" /> <ListView android:id="@+id/subcategories" android:layout_height="fill_parent" android:layout_width="48dip" </ListView> </LinearLayout> And the XML file for the image view: ---vertical layout <ImageView android:id="@+id/icon" android:layout_width="48dip" android:layout_height="48dip" /> My main class extends Activity and I use setContentView(R.layout.main) and my images are files in the res folder. How do I assign the images to the lists and handle click events in both the lists? I want to display the lists with the images as part of the app startup. Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

