public class LoadingView : UIAlertView
        {
            private UIActivityIndicatorView _activityView;
        
            public void Show(string title)
            {
                Title = title;
                
                _activityView = new
UIActivityIndicatorView(UIActivityIndicatorViewStyle.WhiteLarge);
                _activityView.Frame = new
System.Drawing.RectangleF(122,50,40,40);
                AddSubview(_activityView);
                InvokeOnMainThread(delegate() {
                        _activityView.StartAnimating();
                });
        
UIApplication.SharedApplication.NetworkActivityIndicatorVisible = true;

                Show();
            }
        
            public void Hide()
            {
        
UIApplication.SharedApplication.NetworkActivityIndicatorVisible = false;
                DismissWithClickedButtonIndex(0, true);
            }
        }


                        LoadingView LAV = new LoadingView();
                        LAV.Show ("Bitte warten...");
... operation ...
                        LAV.Hide();

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von MilkyJoe
Gesendet: Dienstag, 14. Februar 2012 15:15
An: [email protected]
Betreff: [MonoTouch] Modal activity indicator?

Is it possible to implement a modal activity indicator?

By this, I mean I'd like the entire view to become darker, with user
interaction disabled and a single activity indicator spinning in the centre
of the screen.

I have the activity indicator working with user interaction disabled, but
it's hard to see the indicator on top of the main view, and it's not clear
that the view has been temporarily disabled.

If not, what approach should I be using for this?

Thanks,
Leigh

--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Modal-activity-indicator-tp4387121p43
87121.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to