[mono-android] fragments
Wally McClure
theevilprogrammer at hotmail.com
Wed Nov 30 20:31:34 EST 2011
Thanks Jon. Yeah, I resolved this. Basically, the next morning, when I came in, it all worked. The only conclusion I could come to was "user error."
Wally
> From: jonp at xamarin.com
> Date: Wed, 30 Nov 2011 19:11:45 -0500
> To: monodroid at lists.ximian.com
> Subject: Re: [mono-android] fragments
>
> You may have figured this out already, but...
>
> On Nov 17, 2011, at 12:25 PM, Wally McClure wrote:
> > I'm doing some stuff in Honeycomb and have run into two issues with fragments.
> > • RunOnUIThread. Is this available in a fragment?
>
> There's a Fragment.Activity property:
>
> http://androidapi.xamarin.com/monodoc.ashx?link=P%3aAndroid.App.Fragment.Activity
>
> So use Activity.RunOnUiThread(...). :-)
>
>
> > • Can I create a Toast in a fragment?
>
> I don't see why not, you'll just use the Activity property as the "host" Context instance.
>
> - Jon
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20111130/d3c7fe38/attachment-0001.html
More information about the Monodroid
mailing list