<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:src="@drawable/bigpicture"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:scaleType="center"/>
</ScrollView>
</HorizontalScrollView>
</LinearLayout>
Home »
» Display scrollable ImageView bigger than screen
Display scrollable ImageView bigger than screen
Written By MR HARI on Senin, 07 Mei 2012 | 11.29
To display image bigger than the device screen, in true size, with scroll bar. We can embed it in a ImageView within nested ScrollView and HorizontalScrollView.
Related Articles
If you enjoyed this article just click here, or subscribe to receive more great content just like it.

0 komentar:
Posting Komentar