Hey guys,
I have facing problem while creating an EditText view which support multi-lines as on some application it required on creating some Form which need it.
So here I am giving you the sample code to solve this problem and save your time.
By default all the
I have facing problem while creating an EditText view which support multi-lines as on some application it required on creating some Form which need it.
So here I am giving you the sample code to solve this problem and save your time.
By default all the
EditText
widgets in Android are multi-lined.<EditText
android:inputType="textMultiLine" <!-- Multiline input -->
android:lines="8" <!-- Total Lines prior display -->
android:minLines="6" <!-- Minimum lines -->
android:gravity="top|left" <!-- Cursor Position -->
android:maxLines="10" <!-- Maximum Lines -->
android:layout_height="wrap_content" <!-- Height determined by content -->
android:layout_width="fill_parent" <!-- Fill entire width -->
android:scrollbars="vertical" <!-- Vertical Scroll Bar -->
/>