TextInputEditText long text code example
Example 1: edittext few lines
android:lines="8"
android:minLines="6"
android:gravity="top|left"
android:maxLines="10"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:scrollbars="vertical"
/>
Example 2: text input layout outline box
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"