The theme is as follows, I have an EditText
<EditText
android:id="@+id/txtBeneficiary"
android:inputType="phone"
android:maxLength="10"
android:layout_width="160dp"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:textSize="@dimen/simple_text_size"
android:textColor="@color/light_grey"/>
Clearly lets you write up to 10 characters,
But in my application I have a button which brings you the contacts and you can choose one, when you choose I show the name and number the number and then I get that number for later, the problem comes in that if the name is longer than 10 I have the name cut, do I have any way to get the restriction for him momentarily? or there is an optimal way to do this without having to remove the restriction