Sometimes we may need to include a long default text on a single line in EditText, for that we can set the EditText to single line and provide a horizontal scroll. <EditText android:id="@+id/EditTextValue" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:singleLine="true" android:scrollHorizontally="true" android:text="This is a big text to be included in the edittext so added a horizontal scroll..."/ >
A blog where you can find all codes for Android, Corona, Basic tutorials, Interview questions and more...