I have an android application in which I am using ImageView to show images. I also set scrollview in imageview. there is also zoom functionality in imageview. when in zoom in image then scrollview not allow to show full image after zoom in. It shows only that part of image which is inside the scrollbar. I want to show full iamge using scrollbar after zoom in.here is the code of my XML file.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/org_back"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/rlayout1"
android:layout_width="match_parent"
android:layout_height="400dp"
android:layout_marginBottom="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:background="@drawable/layout_shape" >
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:scrollbarStyle="outsideOverlay"
android:fadeScrollbars="true"
android:scrollbarSize="10dip">
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:scaleType="matrix"
android:adjustViewBounds="true"
android:layout_gravity="center_horizontal"
android:addStatesFromChildren="true">
</ImageView>
</HorizontalScrollView>
</ScrollView>
</RelativeLayout>
<Button
android:id="@+id/btnprev"
android:layout_alignBaseline="@+id/btnbackHome"
android:layout_width="80dp"
android:layout_height="40dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="20dp"
android:background="@drawable/button"
android:text="Previous" />
<Button
android:id="@+id/btnbackHome"
android:layout_width="80dp"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:background="@drawable/button"
android:text="Home" />
<Button
android:id="@+id/btnnext"
android:layout_width="80dp"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:layout_alignRight="@+id/rlayout1"
android:background="@drawable/button"
android:text="Next" />
</RelativeLayout>