当前位置: 首页>>代码示例>>C#>>正文


C# EditText.AddTextChangedListener方法代码示例

本文整理汇总了C#中EditText.AddTextChangedListener方法的典型用法代码示例。如果您正苦于以下问题:C# EditText.AddTextChangedListener方法的具体用法?C# EditText.AddTextChangedListener怎么用?C# EditText.AddTextChangedListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EditText的用法示例。


在下文中一共展示了EditText.AddTextChangedListener方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: customizeSearchView

 public void customizeSearchView()
 {
     mSearchBox = FindViewById<EditText> (Resource.Id.search_box);
     mSearchBox.AddTextChangedListener (this);
     mSearchBox.FocusableInTouchMode = true;
     //mSearchBox.SetBackgroundResource (Resource.Drawable.test);
 }
开发者ID:JackNguyen-Developer,项目名称:TroLySo_YTe,代码行数:7,代码来源:MainActivity.cs

示例2: DemoTextInputLayout

        private void DemoTextInputLayout()
        {
            mTextInputLayout = (TextInputLayout)mParentView.FindViewById(Resource.Id.text_input_layout).JavaCast<TextInputLayout>();
            mEditText = mTextInputLayout.EditText;
            mTextInputLayout.SetHint("请输入4位学号");

            mEditText.AddTextChangedListener(this);
        }
开发者ID:huguodong,项目名称:XamandroidSupportDesign22.2.0.0,代码行数:8,代码来源:AgendaFragment.cs

示例3: OnViewCreated

        public override void OnViewCreated(View view, Bundle savedInstanceState)
        {
            base.OnViewCreated(view, savedInstanceState);
           
            searchQueryEditText = view.FindViewById<EditText>(Resource.Id.searchQueryEditText);
            searchQueryEditText.AddTextChangedListener(this);

            var searchButton = view.FindViewById<Button>(Resource.Id.searchButton);
            searchButton.Click += searchButton_Click;

            var startDateButton = view.FindViewById<Button>(Resource.Id.start_date_button);
            startDateButton.Click += startDateButton_Click;

            var endDateButton = view.FindViewById<Button>(Resource.Id.end_date_button);
            endDateButton.Click += endDateButton_Click;
        }
开发者ID:fatelord,项目名称:chgk,代码行数:16,代码来源:SearchParamsView.cs

示例4: OnCreate

        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate (savedInstanceState);
            SetContentView(Resource.Layout.StudyVocab);

            parentView = (LinearLayout)FindViewById (Resource.Id.abc);
            kanjiText = (TextView) FindViewById (Resource.Id.kanji);
            typeText = (TextView) FindViewById (Resource.Id.type);
            guessText = (EditText) FindViewById (Resource.Id.shark);

            guessText.SetRawInputType (InputTypes.TextFlagNoSuggestions);
            guessText.SetOnKeyListener(new MyKeyListener(this));
            guessText.AddTextChangedListener (new MyTextListener (this));

            var button = FindViewById<Button>(Resource.Id.submit);
            button.Click += (sender, e) => {
                SubmitGuess();
            };

            conversion();
            DisplayNewWord ();
        }
开发者ID:jkstrawn,项目名称:wanikani_android,代码行数:22,代码来源:StudyActivity.cs

示例5: EntryElementHelper

 private EntryElementHelper(EditText entry)
 {
     entry.AddTextChangedListener(this);
     entry.EditorAction += EntryOnEditorAction;
 }
开发者ID:runegri,项目名称:Android.Dialog,代码行数:5,代码来源:EntryElementHelper.cs

示例6: OnCreate

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);
            editText = FindViewById<EditText>(Resource.Id.MyButton);
            txtLength = FindViewById<EditText>(Resource.Id.txtLength);
            var mTextWatcher = new TextWatcher(editText, txtLength);
            //editText.AddTextChangedListener(mTextWatcher);

            editText.AddTextChangedListener(mTextWatcher);
            editText.SetSelection(editText.Length()); // 将光标移动最后一个字符后面
        }
开发者ID:Yi-shion,项目名称:Xamarin,代码行数:12,代码来源:MainActivity.cs

示例7: layoutSlidingTop

        private void layoutSlidingTop()
        {
            containerSliding = FindViewById<RelativeLayout> (Resource.Id.container);
            searchBox = FindViewById<EditText> (Resource.Id.search_box);
            listViewDrugStores = FindViewById<ListView> (Resource.Id.listview_drugstores);
            listViewDrugStores.OnItemClickListener = this;

            containerSliding.SetOnTouchListener (this);
            searchBox.AddTextChangedListener (this);

            handleSpinner ();

            //			listViewDrugStores.ItemClick += (object sender, AdapterView.ItemClickEventArgs e) => {
            //				googleMap.Clear ();
            //				drugLatitude = viewModel.list_drugstore [e.Position].latitude;
            //				drugLongitude = viewModel.list_drugstore [e.Position].longtitude;
            //				drugstoreMarker ();
            //			};
        }
开发者ID:JackNguyen-Developer,项目名称:TroLySo_YTe,代码行数:19,代码来源:MapController.cs


注:本文中的EditText.AddTextChangedListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。