Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Android version of of HTML’s TextArea?

Tags:

android

What is the view element in Android which gives an effect like an HTML textarea input widget?

I want to create a form to send Email and for the body field I want to create a textarea type of UI element in the form.

Can someone suggest the way to do this?

like image 668
rbk Avatar asked Jan 09 '10 06:01

rbk


People also ask

What is textarea HTML?

The <textarea> HTML element represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.

How to make EditText as textarea in android?

So we have set android:inputType = textMultiLine to make our EditText support multiple line and keyboard's enter button will add lines instead of submit. And we set android:gravity = top|left, its inner gravity of EditText which moves the cursor to Top-Left corner of EditText. Which looks like TextArea of a webpage.

What is the input type for textarea in HTML?

The <textarea> tag defines a multi-line text input control. The <textarea> element is often used in a form, to collect user inputs like comments or reviews. A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).


1 Answers

EditText would seem to be the obvious choice here.

You'll need to set the android:inputType attribute to textMultiLine.

like image 200
Dave Webb Avatar answered Oct 02 '22 04:10

Dave Webb