HorizontalScrollView
Overview
A horizontally scrollable layout control; can have only one direct child element
Example
<HorizontalScrollView
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>
</HorizontalScrollView>
Properties
Common Properties
Private Properties
| Property | Description | Values |
|---|---|---|
| layout_weight | Child weight | Number When the parent is LinearLayout, child controls can set weight |
| fillViewport | Fill entire viewport | true: yes false: no |