Month: June 2021

Android-er: TextInputLayout + TextInputEditText

Simple example to use com.google.android.material.textfield.TextInputLayout and com.google.android.material.textfield.TextInputEditText in layout xml to make edit text better. <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout 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” android:orientation=”vertical” tools:context=”.MainActivity”> <TextView android:layout_width=”match_parent” android:layout_height=”wrap_content” android:text=”android-er.blogspot.com” android:gravity=”center”/> <TextView….