Android Make TextView Looks Like EditText

March 31, 2019
<TextView
    android:id="@+id/textView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:visibility="gone"
    android:textColor="?attr/editTextColor"
    android:background="?attr/editTextBackground"
    android:textAppearance="?android:attr/textAppearanceMedium"
    />

NOTE: If you don’t want to show underline, remove android:background="?attr/editTextBackground".

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.