Back to project page WizardPager.
The source code is released under:
Apache License
If you think the Android project WizardPager 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 com.tech.freak.wizardpager.ui; //www .ja v a 2 s . c om import android.annotation.SuppressLint; import android.os.Build; import android.os.Bundle; import android.text.InputType; public class NumberFragment extends TextFragment { public static NumberFragment create(String key) { Bundle args = new Bundle(); args.putString(ARG_KEY, key); NumberFragment f = new NumberFragment(); f.setArguments(args); return f; } @SuppressLint("InlinedApi") @Override protected void setInputType() { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) { mEditTextInput.setInputType(InputType.TYPE_CLASS_NUMBER); } else { mEditTextInput.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_NORMAL); } } }