Exemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);

            Button   button = FindViewById <Button>(Resource.Id.MyButton);
            Button   btnime = FindViewById <Button>(Resource.Id.btnIME);
            Button   btnmap = FindViewById <Button>(Resource.Id.btnMap);
            EditText text1  = FindViewById <EditText>(Resource.Id.editText1);

            label1        = FindViewById <TextView>(Resource.Id.textView7);
            label1.Text   = reFile();
            button.Click += delegate {
                saveFl(text1.Text);
                label1.Text = reFile();
            };
            btnime.Click += delegate {
                InputMethodManager imeManager = (InputMethodManager)GetSystemService(InputMethodService);
                imeManager.ShowInputMethodPicker();
            };
            btnmap.Click += delegate {
                StartActivity(typeof(CusMap));
            };
        }
Exemplo n.º 2
0
        void OpenIMESelection_Click(object sender, EventArgs e)
        {
            InputMethodManager imm = (InputMethodManager)GetSystemService(InputMethodService);

            imm.ShowInputMethodPicker();
        }