I want to restrict a user can enter only positive and negative real value in edit text. Here is my code
<EditText
android:id="@+id/value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:hint="@string/value"
android:inputType="numberDecimal"
>
By above code i am able to enter real value But can't enter negative real value(like "-3.7") how it is possible. Is there any other property for this.
Thanks in advance.