Java Code Examples for android.support.v7.widget.AppCompatEditText#addTextChangedListener()
The following examples show how to use
android.support.v7.widget.AppCompatEditText#addTextChangedListener() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FormElementTextMultiLineViewHolder.java From FormMaster with Apache License 2.0 | 5 votes |
public FormElementTextMultiLineViewHolder(View v, FormItemEditTextListener listener) { super(v); mTextViewTitle = (AppCompatTextView) v.findViewById(R.id.formElementTitle); mEditTextValue = (AppCompatEditText) v.findViewById(R.id.formElementValue); mFormCustomEditTextListener = listener; mEditTextValue.addTextChangedListener(mFormCustomEditTextListener); mEditTextValue.setMaxLines(4); mEditTextValue.setSingleLine(false); mEditTextValue.setInputType(InputType.TYPE_CLASS_TEXT|InputType.TYPE_TEXT_FLAG_MULTI_LINE); }
Example 2
Source File: FormElementTextPhoneViewHolder.java From FormMaster with Apache License 2.0 | 5 votes |
public FormElementTextPhoneViewHolder(View v, FormItemEditTextListener listener) { super(v); mTextViewTitle = (AppCompatTextView) v.findViewById(R.id.formElementTitle); mEditTextValue = (AppCompatEditText) v.findViewById(R.id.formElementValue); mFormCustomEditTextListener = listener; mEditTextValue.addTextChangedListener(mFormCustomEditTextListener); mEditTextValue.setRawInputType(InputType.TYPE_CLASS_PHONE|InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); }
Example 3
Source File: FormElementTextPasswordViewHolder.java From FormMaster with Apache License 2.0 | 5 votes |
public FormElementTextPasswordViewHolder(View v, FormItemEditTextListener listener) { super(v); mTextViewTitle = (AppCompatTextView) v.findViewById(R.id.formElementTitle); mEditTextValue = (AppCompatEditText) v.findViewById(R.id.formElementValue); mFormCustomEditTextListener = listener; mEditTextValue.addTextChangedListener(mFormCustomEditTextListener); mEditTextValue.setRawInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD|InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); }
Example 4
Source File: FormElementTextNumberViewHolder.java From FormMaster with Apache License 2.0 | 5 votes |
public FormElementTextNumberViewHolder(View v, FormItemEditTextListener listener) { super(v); mTextViewTitle = (AppCompatTextView) v.findViewById(R.id.formElementTitle); mEditTextValue = (AppCompatEditText) v.findViewById(R.id.formElementValue); mFormCustomEditTextListener = listener; mEditTextValue.addTextChangedListener(mFormCustomEditTextListener); mEditTextValue.setRawInputType(InputType.TYPE_CLASS_NUMBER|InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); }
Example 5
Source File: FormElementTextEmailViewHolder.java From FormMaster with Apache License 2.0 | 5 votes |
public FormElementTextEmailViewHolder(View v, FormItemEditTextListener listener) { super(v); mTextViewTitle = (AppCompatTextView) v.findViewById(R.id.formElementTitle); mEditTextValue = (AppCompatEditText) v.findViewById(R.id.formElementValue); mFormCustomEditTextListener = listener; mEditTextValue.addTextChangedListener(mFormCustomEditTextListener); mEditTextValue.setRawInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS|InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); }
Example 6
Source File: FormElementTextSingleLineViewHolder.java From FormMaster with Apache License 2.0 | 5 votes |
public FormElementTextSingleLineViewHolder(View v, FormItemEditTextListener listener) { super(v); mTextViewTitle = (AppCompatTextView) v.findViewById(R.id.formElementTitle); mEditTextValue = (AppCompatEditText) v.findViewById(R.id.formElementValue); mFormCustomEditTextListener = listener; mEditTextValue.addTextChangedListener(mFormCustomEditTextListener); mEditTextValue.setMaxLines(1); }
Example 7
Source File: MarkdownNoteEditActivity.java From nono-android with GNU General Public License v3.0 | 5 votes |
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView=null; final String content = getArguments().getString(ARG_CONTENT); switch (getArguments().getInt(ARG_SECTION_NUMBER)) { case TYPE_EDIT: showHelp(container); rootView = inflater.inflate(R.layout.fragment_markdown, container, false); edit =(AppCompatEditText) rootView.findViewById(R.id.markdown_edit); edit.requestFocus(); if(content !=null){ edit.setText(content); historyList.add(new History(0,content)); } edit.addTextChangedListener(textWatcher); break; case TYPE_VIEW: showHelp(container); rootView=inflater.inflate(R.layout.fragment_webview,container,false); webView=(MarkDownWebView) rootView.findViewById(R.id.web_view); webView.ini(); webView.setBackgroundColor(AppPreferenceUtil.getEditBgColor()); webView.loadUrl("file:///android_asset/markdown.html"); webView.postDelayed(new Runnable() { @Override public void run() { parseMarkdown(content); getView().findViewById(R.id.loading_bg).setVisibility(View.GONE); getView().findViewById(R.id.actual_view).setVisibility(View.VISIBLE); } },300); } return rootView; }