I am having n number of images to be shown in a gridview. Prsently, I'm populating a gridview in an activity with three columns and one row. I provide a separate link to another activity, which populates another Gridview with these n images.
What I intend to do is to put all n images in a single gridview and apply horizontal scroll to it. This should give an impression of scrolling through images in a single row, where n number of columns is variable (Can i set the number of columns programatically?). I need to display three images at a time. The scroll should show next three, and so on till n.
My present Gridview is present in a RelativeLayout as ---
<GridView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ffffff"
android:columnWidth="0dp"
android:gravity="center"
android:horizontalSpacing="0dp"
android:numColumns="3"
android:stretchMode="columnWidth"
android:verticalSpacing="0dp" />