I am working on an social networking app in android where I was using QuiltViewLibrary for making a QuiltView Gallery of images.
In the same application I have used the HANDMARKS Pull to Refresh library for the GridView.
Both are working fine. Now I have to implement both the libraries for the combined task, that is PULL TO REFRESH in QuiltView GALLERY.
The problem which I am getting is to combine the XML of both the LIBRARIES which are totally different.
XML for PullToRefresh with simple GRID VIEW:
<!-- The PullToRefreshGridView replaces a standard GridView widget. -->
<com.handmark.pulltorefresh.library.PullToRefreshGridView
xmlns:ptr="http://schemas.android.com/apk/res-auto"
android:id="@+id/pull_refresh_grid"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:numColumns="auto_fit"
android:verticalSpacing="1dp"
android:horizontalSpacing="1dp"
android:columnWidth="100dp"
android:stretchMode="columnWidth"
android:gravity="fill"
ptr:ptrMode="both"
ptr:ptrDrawable="@drawable/ic_launcher" />
</LinearLayout>
XML for QuiltView Gallery:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:quilt="http://schemas.android.com/apk/res/com.tv.photos"
android:id="@+id/FrameLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white" >
<com.tv.photos.QuiltView
android:id="@+id/quilt"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="5dip" >
</com.tv.photos.QuiltView>
</FrameLayout>
Please let me know if anyone can suggest me something.
This is quite simple:
ScrollView
GridLayout
(not GridView or any other adapter class)Put an instance of
QuiltView
within an instance ofPullToRefreshScrollView
. Example java, xml.Shouldn't be any more complicated than this: