本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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 ();
}
示例5: EntryElementHelper
private EntryElementHelper(EditText entry)
{
entry.AddTextChangedListener(this);
entry.EditorAction += EntryOnEditorAction;
}
示例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()); // 将光标移动最后一个字符后面
}
示例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 ();
// };
}