I have a set of 8 images, i want to show them one by one in sequence. Next image will appear once a button is clicked.
I am able to load my image in imageview. 1. I cannot find how to change the image on button click 2. How to make changes in program so that image is scrobbable & zoomable.
enter code here
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1">
<ImageView
android:id="@+id/imageview1"
android:gravity="center_horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:src="@drawable/img1"
android:adjustViewBounds="true"
android:keepScreenOn="true"
android:scrollbarStyle="outsideOverlay"
android:scrollbars="horizontal" android:scaleType="fitXY"/>
<Button
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:id="@+id/button1"
android:text="Next"/>
</LinearLayout>