You can use a ListView in an App Widget.

The problem you're seeing is because FindViewById<T> isn't available in a
service class. As well, the UI in an App Widget is disconnected from the
service that would update them. Your service has to access the disconnect
view by using a RemoteView.


On Wed, Nov 28, 2012 at 7:51 AM, kailua <i...@kailuaboy.com> wrote:

> I have a working widget (without a listview). I want to create a widget
> WITH
> a Listview. However, I can not get it to work for some reason. It is not
> accepting the listview view (layout) when I try and add the code.
>
>
>  *ListView listView = FindViewById<ListView>(Resource.Id.DetailedList);* //
> <-- giving me error "Error      1       The name 'FindViewById' does not
> exist in the
> current context C:\Users\FILE_LOCATION_HERE\FILE_NAME.cs        97      24
>      PROJECT_NAME
>
> This is within my service class....
>
> ----------start top code------------
> *[Service]
>     class Delay_Widget_Service : Service
>     {*
>
> ---------end top code---------
>
> Are we able to create a homescreen widget with a listview with mono for
> android?
>
>
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/Listview-in-Home-Widget-tp5712519.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
http://www.opgenorth.net
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to