Skip to content

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

Open
@mateusdias

Description

@mateusdias

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>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions