I have set maxLines to 1 and scrollHorizontally to True but it's not working. It is giving multiline EditText which scrolls vertically.
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Work"
android:maxLines="1"
android:lines="1"
android:scrollHorizontally="true"
android:textSize="18sp"
android:padding="4dp"
android:layout_marginStart="32dp"
android:layout_marginEnd="48dp"/>
Wrap EditTextin HorizontalScrollView
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="wrap_content"
android:maxLines="1"
android:layout_height="wrap_content" />
</HorizontalScrollView>