Skip to main content

ScrollView

Overview

A scrollable layout control; can have only one direct child element

Example

<ScrollView
android:fillViewport="true"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout android:layout_height="match_parent"
android:orientation="vertical"
android:layout_width="match_parent">
<TextView android:layout_width="match_parent"
android:layout_height="match_parent"
android:tag="sctest"
/>
</LinearLayout>

</ScrollView>

Properties

Common Properties

See Common Properties

Private Properties

PropertyDescriptionValues
layout_weightChild weightNumber
When the parent is LinearLayout, child controls can set weight
fillViewportFill entire viewporttrue: yes false: no