Scrollview android tutorial

ScrollView is really a special kind of FrameLayout for the reason that it allows customers to scroll through a listing of view that occupy more room compared to physical display. The ScrollView can contain just one child view or ViewGroup , which normally is really a LinearLayout.
ScrollView provides for us a scrollable layout for big data. Please think about the following XML layout to know ScrollView:
>
android:layout_width=”fill_parent”
android:layout_height=”fill_parent”
>
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:text=”Button 1″
/>
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:text=”Button 2″
/>
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:text=”Button 3″
/>
android:layout_height=”250dp”
/>
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:text=”Button 4″
/>
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:text=”Button 5″
/>
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:text=”Button 6″
/>
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:text=”Button 7″
/>
Leave a Reply