The Simple Scroll View and static images are used in xml,I have added as a several images inside of the scrollview,Its a one type of way using Scroll.
Just try it.
Source code=XML
XML code name as main.xml
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:id="@+id/ScrollView01"
android:layout_height="match_parent" android:background="#000000" android:layout_width="wrap_content">
<LinearLayout android:id="@+id/LinearLayout02"
android:layout_width="wrap_content" android:layout_height="30px"
android:orientation="vertical">
<ImageView android:src="@drawable/apple" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView12"></ImageView>
<ImageView android:src="@drawable/baby" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView11"></ImageView>
<ImageView android:src="@drawable/cat" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView9"></ImageView>
<ImageView android:src="@drawable/dog" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView10"></ImageView>
<ImageView android:src="@drawable/elephant" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView8"></ImageView>
<ImageView android:src="@drawable/fox" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView7"></ImageView>
<ImageView android:src="@drawable/peacock" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView6"></ImageView>
<ImageView android:src="@drawable/lion" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView5"></ImageView>
<ImageView android:src="@drawable/horse" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView4"></ImageView>
<ImageView android:id="@+id/imageView2" android:layout_width="match_parent"
android:layout_height="match_parent" android:src="@drawable/icon"></ImageView>
<ImageView android:src="@drawable/apple" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView12"></ImageView>
<ImageView android:src="@drawable/baby" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView11"></ImageView>
<ImageView android:src="@drawable/cat" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView9"></ImageView>
<ImageView android:src="@drawable/dog" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView10"></ImageView>
<ImageView android:src="@drawable/elephant" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView8"></ImageView>
<ImageView android:src="@drawable/fox" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView7"></ImageView>
<ImageView android:src="@drawable/peacock" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView6"></ImageView>
<ImageView android:src="@drawable/lion" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView5"></ImageView>
<ImageView android:src="@drawable/horse" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView4"></ImageView>
</LinearLayout>
</ScrollView>
Just try it.
Source code=XML
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:id="@+id/ScrollView01"
android:layout_height="match_parent" android:background="#000000" android:layout_width="wrap_content">
<LinearLayout android:id="@+id/LinearLayout02"
android:layout_width="wrap_content" android:layout_height="30px"
android:orientation="vertical">
<ImageView android:src="@drawable/apple" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView12"></ImageView>
<ImageView android:src="@drawable/baby" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView11"></ImageView>
<ImageView android:src="@drawable/cat" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView9"></ImageView>
<ImageView android:src="@drawable/dog" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView10"></ImageView>
<ImageView android:src="@drawable/elephant" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView8"></ImageView>
<ImageView android:src="@drawable/fox" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView7"></ImageView>
<ImageView android:src="@drawable/peacock" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView6"></ImageView>
<ImageView android:src="@drawable/lion" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView5"></ImageView>
<ImageView android:src="@drawable/horse" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView4"></ImageView>
<ImageView android:id="@+id/imageView2" android:layout_width="match_parent"
android:layout_height="match_parent" android:src="@drawable/icon"></ImageView>
<ImageView android:src="@drawable/apple" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView12"></ImageView>
<ImageView android:src="@drawable/baby" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView11"></ImageView>
<ImageView android:src="@drawable/cat" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView9"></ImageView>
<ImageView android:src="@drawable/dog" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView10"></ImageView>
<ImageView android:src="@drawable/elephant" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView8"></ImageView>
<ImageView android:src="@drawable/fox" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView7"></ImageView>
<ImageView android:src="@drawable/peacock" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView6"></ImageView>
<ImageView android:src="@drawable/lion" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView5"></ImageView>
<ImageView android:src="@drawable/horse" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageView4"></ImageView>
</LinearLayout>
</ScrollView>
No comments:
Post a Comment