How to Scroll large image in ImageView Android Example

main.xml

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
		android:orientation="vertical"
			android:gravity="top"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >
 
        <ScrollView
            android:id="@+id/scrollView1"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" >
 
            <HorizontalScrollView
                android:id="@+id/horizontalScrollView1"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" >
 
 
            <LinearLayout
			    android:gravity="top"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" >
 
                <ImageView
                    android:id="@+id/imageViewObrazekGeometrie"
                    android:layout_width="360dp"
                    android:layout_height="777dp"
                    android:src="@drawable/geometrie_vzorecky" />
 
            </LinearLayout>
            </HorizontalScrollView>
        </ScrollView>
 
    </LinearLayout>
This entry was posted in Android Examples Code, Bitmap, drawing and tagged , . Bookmark the permalink.


Comments are closed.

12,178 views