I don’t understand how to add icon before my EditText
My code is bellow…..
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.naomi.login"> <EditText android:id="@+id/editText2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:ems="10" android:inputType="textPersonName" android:text="Name" tools:layout_editor_absoluteX="66dp" tools:layout_editor_absoluteY="113dp" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_marginTop="148dp" /> </RelativeLayout>
Question and answer is powered by AnsPress.io