Masked-Edittext icon indicating copy to clipboard operation
Masked-Edittext copied to clipboard

Improvement for work with android.support.design.widget.TextInputLayout together

Open mateusdias opened this issue 8 years ago • 0 comments

Dears,

When I use MaskedEditText with TextInputLayout the place holder text not is possible, when start activity, the field show the mask, not label for this field.

Maybe update the code to extends for android.support.design.widget.TextInputEditText solve this.

<android.support.design.widget.TextInputLayout
            android:id="@+id/textInputLayoutPhoneNumber"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/radioGroupGender"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp">

            <com.github.pinball83.maskededittext.MaskedEditText
                android:id="@+id/maskedPhoneNumber"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:inputType="number"
                app:mask="(**) *****-****"
                app:notMaskedSymbol="*"
                app:maskIconColor="@color/colorPrimary"
                />

</android.support.design.widget.TextInputLayout>

mateusdias avatar Feb 06 '17 13:02 mateusdias