Java Code Examples for android.support.v7.widget.AppCompatEditText#setRawInputType()
The following examples show how to use
android.support.v7.widget.AppCompatEditText#setRawInputType() .
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: 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 2
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 3
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 4
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); }