Có thể cuộn bên trong EditText có trong một ScrollView
không?Cuộn bên trong EditText có trong ScrollView
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- scroll inside this EditText -->
<EditText android:id="@+id/et_scrollhere"
android:lines="6"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Voorbeeld"
android:layout_margin="5dp"
android:scrollbars="vertical"
android:inputType="textMultiLine"/>
</LinearLayout>
</ScrollView>
Hoặc có thể có EditText được nhúng trong bàn phím ở chế độ dọc không? Một cái gì đó như WhatsApp, EditText đó có thể cuộn được.
Chỉ sử dụng android: scrollbars = "thẳng đứng" loại bỏ ... –
tôi cần phải di chuyển bên trong linearLayout của tôi là tốt. – Klaasvaak
Sửa chiều cao của EditText thay vì bao bọc nội dung. –