Open wasim-abuzaher opened 7 years ago
I'll tell you what I did to add a custom drawable instead of the default mail one. Firstly, I created a vector asset and added it to my drawable. Later on, I called that drawable when I was creating the text field. I've added some code below for context.
<com.github.florent37.materialtextfield.MaterialTextField
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="335dp"
app:mtf_cardCollapsedHeight="4dp"
app:mtf_image="@drawable/ic_person_pin"
app:mtf_labelColor="@color/color_tab_2">
So I got this issue when I tried to run the app after configuring the text field:
I am sure it has something to do with this:
Any guidance on how to precise the drawable right?