Back to project page Aether-s-Notebook-Android-Client.
The source code is released under:
GNU General Public License
If you think the Android project Aether-s-Notebook-Android-Client listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package aethers.notebook.core.ui; //from ww w .ja v a2s . c o m import android.content.Context; import android.preference.EditTextPreference; import android.text.InputType; import android.util.AttributeSet; import android.widget.EditText; public class EditIntegerPreference extends EditTextPreference { public EditIntegerPreference(Context context) { super(context); } public EditIntegerPreference(Context context, AttributeSet attrs) { super(context, attrs); } public EditIntegerPreference( Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public EditText getEditText() { EditText e = super.getEditText(); e.setInputType(InputType.TYPE_CLASS_NUMBER); return e; } @Override public void setText(String text) { super.setText(text); } }