protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); _editEmojicon = FindViewById <EmojiconEditText>(Resource.Id.editEmojicon); _textEmojicon = FindViewById <EmojiconTextView>(Resource.Id.txtEmojicon); _textPlain = FindViewById <TextView>(Resource.Id.txtPlain); EmojiconsFragment.EmojiClicked += e => EmojiconsFragment.Input(_editEmojicon, e); EmojiconsFragment.EmojiconBackspaceClicked += v => EmojiconsFragment.Backspace(_editEmojicon); _editEmojicon.TextChanged += (sender, e) => { _textEmojicon.Text = e.Text.ToString(); _textPlain.Text = e.Text.ToString(); }; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); m_EditEmojicon = FindViewById <EmojiconEditText> (Resource.Id.editEmojicon); m_TextEmojicon = FindViewById <EmojiconTextView> (Resource.Id.txtEmojicon); btncopy = FindViewById <Button>(Resource.Id.button1); Android.Support.V4.App.FragmentManager mgr = SupportFragmentManager; EmojiconsFragment.EmojiClicked += (e) => { EmojiconsFragment.Input(m_EditEmojicon, e); }; EmojiconsFragment.EmojiconBackspaceClicked += (v) => { EmojiconsFragment.Backspace(m_EditEmojicon); }; m_EditEmojicon.TextChanged += (object sender, Android.Text.TextChangedEventArgs e) => { m_TextEmojicon.Text = e.Text.ToString(); }; btncopy.Click += btncopy_Click; }