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.com>wrote:

> 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 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">
>>
>>          <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<android-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<android-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<android-beginners%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
YuviDroid
Check out Launch-X <http://android.yuvalsharon.net/launchx.php> (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
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

Reply via email to