Hi, I was trying to create a scrolling list view for an android home screen widget with the following layout
<?xml version="1.0" encoding="utf-8"?> <!-- res/layout/bday_widget.xml --> <!-- The initial layout of the widget as it would appear on the home screen --> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="200dp" android:layout_height="280dp" android:paddingLeft="8dp" android:paddingRight="8dp" android:background="@drawable/background"> <ImageView android:id="@+id/iet_logo" android:layout_width="fill_parent" android:layout_height="50px" android:layout_alignParentLeft="true" android:src="@drawable/iet_logo" android:layout_alignParentTop="true" /> <LinearLayout xmlns:android=" http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_centerInParent="true"> <TextView android:id="@+id/ietw_title" xmlns:android=" http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/iet_logo" android:text="Current Local Network"/> <TextView android:id="@+id/events" xmlns:android=" http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/iet_logo" android:layout_align android:text="Current Local Network"/> <ListView android:id="@id/android:list" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#FFFFFF" android:layout_weight="1" android:drawSelectorOnTop="false" android:layout_below="@+id/ietw_title"/> <TextView android:id="@id/android:empty" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#FF0000" android:text="No data"/> </LinearLayout> </RelativeLayout> But kept on getting the following error: Caused by: android.view.InflateException: Binary XML file line #36: Class not allowed to be inflated android.widget.ListView I understood this to mean that ListViews were not one of the accepted views for a RemoteView. Is there any other way for me to implement a scrolling list view in a Remoteview. Many Thanks in Advance Rodney -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en