<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity"
android:background="@drawable/background">
<ImageView
android:id="@+id/iv_bollywood"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="94dp"
android:src="@drawable/bollywood" />
<ImageView
android:id="@+id/iv_hollywood"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/iv_bollywood"
android:layout_below="@+id/iv_bollywood"
android:layout_marginTop="14dp"
android:src="@drawable/hollywood" />
<ImageView
android:id="@+id/iv_animated"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/iv_hollywood"
android:layout_below="@+id/iv_hollywood"
android:layout_marginTop="14dp"
android:src="@drawable/animated" />
<ImageView
android:id="@+id/iv_hindhi_dub"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/iv_animated"
android:layout_below="@+id/iv_animated"
android:layout_marginTop="14dp"
android:src="@drawable/hindidub" />
<ImageView
android:id="@+id/iv_other"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/iv_hindhi_dub"
android:layout_below="@+id/iv_hindhi_dub"
android:layout_marginTop="14dp"
android:src="@drawable/other" />
</RelativeLayout>
i am new in android.i want to add scroll in my application.
我想在我的imageview.i中使用scrollview我希望我的應用程序中的水平和垂直滾動視圖,我怎麼能this.please幫助我,並給我任何代碼示例相關的我的application.thankyou ... :)如何在scrollview中添加多個圖像瀏覽?
檢查此鏈接:http://stackoverflow.com/questions/2044775/scrollview-vertical-and-horizontal-in-android – Shankar