[mono-android] fragments
Jonathan Pryor
jonp at xamarin.com
Wed Nov 30 19:11:45 EST 2011
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
More information about the Monodroid
mailing list