Android Layout: how to make multiline EditText In android (HTML TextArea Equivalent)


What is TextArea equivalent in Android ?

Unfortunately Android does’t have a textarea tag,  so we need some tricky way to make it. the only text input in Android layout is only EditText, so this is how to make multiple line edittext in android :

        <EditText
android:layout_toRightOf=”@+id/invDescription”
android:layout_width=”150dp”
android:layout_height=”75dp”
   android:gravity=”top”
android:padding=”4dp”
android:textSize=”17dp”/>

the keys are set wanted High  and gravity to top to get the cursor in the top position of edit text.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s