在android中显示用于编辑文本的可滚动框

时间:2013-12-23 03:19:42

标签: android-layout

我正在尝试显示一个包含滚动条的框,并允许用户输入他们的输入。目前我有一个空白(带有'this'的那个),它使用以下布局接受多行输入:

 <EditText
            android:id="@+id/event_description"
            android:hint="@string/hint_description"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="5dp"
            android:textColor="#02960B"
            android:textSize="14sp" 
            android:inputType="textMultiLine"/>

Form showing a line with multi-line input

有没有人知道如何在侧面显示带有滚动条的框以进行多行输入

1 个答案:

答案 0 :(得分:0)

将EditText包装在ScrollView

相关问题