[android-beginners] Creating a listview in for an android home screen widgets
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 ImageViewandroid: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 TextViewandroid: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/ TextViewandroid: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=#FF 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=#FF 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
Re: [android-beginners] Creating a listview in for an android home screen widgets
That is correct... Only specific views can be used in a RemoteView. The documentation specifies which views can be used. On Jul 25, 2010 10:06 AM, Rodney Lendore rodney.lend...@gmail.com wrote: 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 ImageViewandroid: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 TextViewandroid: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/ TextViewandroid: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=#FF 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=#FF 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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
Re: [android-beginners] Creating a listview in for an android home screen widgets
So is there another way to create a scrollable List in a widget ? I thinking along the lines of the HTC Calender widget in which you can scroll through all your events for the month etc. Thanks On Sun, Jul 25, 2010 at 6:23 PM, Justin Anderson janderson@gmail.comwrote: That is correct... Only specific views can be used in a RemoteView. The documentation specifies which views can be used. On Jul 25, 2010 10:06 AM, Rodney Lendore rodney.lend...@gmail.com wrote: 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 ImageViewandroid: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 TextViewandroid: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/ TextViewandroid: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=#FF 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=#FF 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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
Re: [android-beginners] Creating a listview in for an android home screen widgets
Sure. Add one or more (repeating) views, make a couple buttons for scrolling to previous/next positions, and update data item views when these buttons are clicked. Press and drag is reserved for home screen switching, anyway. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 25.07.2010 22:30 пользователь Rodney Lendore rodney.lend...@gmail.com написал: So is there another way to create a scrollable List in a widget ? I thinking along the lines of the HTC Calender widget in which you can scroll through all your events for the month etc. Thanks On Sun, Jul 25, 2010 at 6:23 PM, Justin Anderson janderson@gmail.com wrote: That is corre... -- 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
Re: [android-beginners] Creating a listview in for an android home screen widgets
Only home replacements apps are supporting scrollable widgets...you can take a look here: http://groups.google.com/group/android-appwidget-extensions On Sun, Jul 25, 2010 at 8:30 PM, Rodney Lendore rodney.lend...@gmail.comwrote: So is there another way to create a scrollable List in a widget ? I thinking along the lines of the HTC Calender widget in which you can scroll through all your events for the month etc. Thanks On Sun, Jul 25, 2010 at 6:23 PM, Justin Anderson janderson@gmail.comwrote: That is correct... Only specific views can be used in a RemoteView. The documentation specifies which views can be used. On Jul 25, 2010 10:06 AM, Rodney Lendore rodney.lend...@gmail.com wrote: 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 ImageViewandroid: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 TextViewandroid: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/ TextViewandroid: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=#FF 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=#FF 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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