AndroidPayQuickstart.PromoAddressLookupFragment.OnCreateView C# (CSharp) Метод

OnCreateView() публичный Метод

public OnCreateView ( Android inflater, Android container, Android savedInstanceState ) : Android.Views.View
inflater Android
container Android
savedInstanceState Android
Результат Android.Views.View
        public override Android.Views.View OnCreateView (Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {            
            var view = inflater.Inflate (Resource.Layout.fragment_promo_address_lookup, container, false);
            // Styling the header with HTML elements in TextView
            var promoTitle = view.FindViewById<TextView> (Resource.Id.promo_title);
            promoTitle.Text = Android.Text.Html.FromHtml (GetString (Resource.String.promo)).ToString ();
            mProgressDialog = initializeProgressDialog();
            view.Click += delegate {
                if (mConnectionResult != null) {
                    // If there was a connection failure, attempt to resolve the ConnectionResult
                    // when the user taps the button
                    resolveConnection ();
                } else {
                    lookupAddress ();
                }
            };
            return view;
        }