Пример #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState); // add this line to your code, it may also be called: bundle

            H113Platform.Init(this);

            SetContentView(Resource.Layout.activity_main);

            var appRTCBtn = FindViewById <Button>(Resource.Id.btn_apprtc);
            var h113Btn   = FindViewById <Button>(Resource.Id.btn_h113);

            appRTCBtn.Click += (sender, args) => StartActivity(typeof(ConnectActivity));
            h113Btn.Click   += (sender, args) => StartActivity(typeof(LoginActivity));
        }
Пример #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);

            SetContentView(Resource.Layout.activity_login);

            H113Platform.Init(this);

            _phoneEditText = FindViewById <EditText>(Resource.Id.et_phone);
            _codeEditText  = FindViewById <EditText>(Resource.Id.et_code);
            _loginButton   = FindViewById <Button>(Resource.Id.start_call);

            _loadingContainer = FindViewById(Resource.Id.loading_container);

            _loadingContainer.Visibility = ViewStates.Gone;

            _loginButton.Click += LoginButtonOnClick;
        }