I'm new to Android development and I came into some issues trying to limit digits after period to 4 digits only.
I created EditText:
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="numberDecimal|numberSigned"
android:ems="10"
android:id="@+id/myEdit"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true" />
And it allows only one dot and numbers what's exactly what I want. But also I need it to allow only 4 digits max after the period. How exactly can I achieve this?