本文整理汇总了Java中android.support.v7.widget.AppCompatEditText.setRawInputType方法的典型用法代码示例。如果您正苦于以下问题:Java AppCompatEditText.setRawInputType方法的具体用法?Java AppCompatEditText.setRawInputType怎么用?Java AppCompatEditText.setRawInputType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.support.v7.widget.AppCompatEditText
的用法示例。
在下文中一共展示了AppCompatEditText.setRawInputType方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: FormElementTextPhoneViewHolder
import android.support.v7.widget.AppCompatEditText; //导入方法依赖的package包/类
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);
}
示例2: FormElementTextPasswordViewHolder
import android.support.v7.widget.AppCompatEditText; //导入方法依赖的package包/类
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);
}
示例3: FormElementTextNumberViewHolder
import android.support.v7.widget.AppCompatEditText; //导入方法依赖的package包/类
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);
}
示例4: FormElementTextEmailViewHolder
import android.support.v7.widget.AppCompatEditText; //导入方法依赖的package包/类
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);
}