【发布时间】:2015-12-24 17:38:40
【问题描述】:
我正在使用 QuiltViewLibrary 在 Android 中开发一个社交网络应用程序来制作 QuiltView 图像库。
在同一个应用程序中,我为 GridView 使用了 HANDMARKS Pull to Refresh 库。
两者都工作正常。现在我必须为组合任务实现这两个库,即 QuiltView GALLERY 中的 PULL TO REFRESH。
我遇到的问题是将两个完全不同的 LIBRARIES 的 XML 结合起来。
带有简单网格视图的 PullToRefresh 的 XML:
<!-- 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>
QuiltView Gallery 的 XML:
<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>
如果有人可以给我一些建议,请告诉我。
【问题讨论】:
标签: android pull-to-refresh quiltview