0
Try using: mEditText.setInputType(InputType.TYPE_NUMBER_FLAG_DECIMAL | InputType.TYPE_CLASS_NUMBER); Edit : Also change your xml like: <EditText android:text="100.99" android:id="@+id/EditText01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:...