Scrollview android tutorial

Scrollview-android-tutorial-featured.png

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_height=”wrap_content”
>
android:orientation=”vertical”
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_width=”fill_parent”
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

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>