QuiltView Gallery with Pull to Refresh on Android?

I am working on a social networking application in android where I used QuiltViewLibrary to create a QuiltView image gallery.

In the same application, I used the HANDMARKS Pull to Refresh library for the GridView.

Both work fine. Now I need to implement both libraries for the combined task, i.e. PULL TO REFRESH in QuiltView GALLERY.

The problem I get is to combine XML as LIBRARIES, which are completely different.

XML for PullToRefresh with a simple GRID scan:

<!-- 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 the 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 offer me something.

+4
2

:

  • pulltorfresh Chris Banes ScrollView
  • QuiltView GridLayout ( GridView )

QuiltView PullToRefreshScrollView. java, xml.

, :

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <com.handmark.pulltorefresh.library.PullToRefreshScrollView
        xmlns:ptr="http://schemas.android.com/apk/res-auto"
        android:id="@+id/pull_refresh_scrollview"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >

        <com.tv.photos.QuiltView
            android:id="@+id/quilt"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:padding="5dip" />

    </com.handmark.pulltorefresh.library.PullToRefreshScrollView>

</LinearLayout>
+1

handtracktorefresh pulltorefresh, quiltview . QuiltView FrameLayout, handmark , 3 :

1. PullToRefreshQuiltView, PullToRefreshBase.

, PullToRefreshBase PullToRefreshWebView, , .

2. QuiltView

. 50 scrollview pullToRefreshScrollView, scrollView ptr.

3. RecyclerView GridLayoutManager Handmark PullToRefresh Android SwipeRefreshLayout

- RecyclerView GridLayoutManager (- GridLayoutManager Span Size RecycleView) handmark pulltorefresh orroid SwipeRefreshLayout.

SwipeRefreshLayout Android.

0

All Articles