Skip to main content

Posts

Showing posts with the label single line

EditText With Long Default Text On A single Line in ANDROID

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..."/ >