android - Gridview horizontal scroll with variable number of columns -
i having n number of images shown in gridview. prsently, i'm populating gridview in activity 3 columns , 1 row. provide separate link activity, populates gridview these n images.
what intend put n images in single gridview , apply horizontal scroll it. should give impression of scrolling through images in single row, n number of columns variable (can set number of columns programatically?). need display 3 images @ time. scroll should show next three, , on till n.
my present gridview present in relativelayout ---
<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" />
Comments
Post a Comment