的Android如何文本区 [英] Android how to TextArea
本文介绍了的Android如何文本区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何显示我的Android项目的TextArea?从XML,唯一的选择就是文本字段,多衬里。但多数民众赞成编辑。我需要一个textarea这是只为显示消息/文本不能是编辑/输入用户。
How do i display a TextArea with my android project? From xml, the only choice is TextField, multi lined. But thats editable. I need a textarea which is only for displaying messages/text cant be edit/input by user.
推荐答案
它很简单,在XML写这篇code:
Its really simple, write this code in XML:
<EditText
android:id="@+id/fname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="First Name"
/>
这篇关于的Android如何文本区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文