简体   繁体   中英

How to take paragraphs as an input in android?

I am developing a Notes app and I want to implement a kind of text area thing where user can enter as many paragraphs as he wants and then all of that gets saved in the database. Edit texts look good when you want to take short input like name and phone number but what to do in this case?

Something like this:

在此处输入图像描述

在此处输入图像描述

If your app is in React native try this props:

 <TextInput 
  multiline={true}
  />

Then if its in android try this:

<EditText
    android:inputType="textMultiLine" />

as vivek suggested.

Hope it helps, feel free for doubts

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM