我需要帮助摆脱这个错误,我想知道你们有没有人在使用pulltorefresh时遇到过这个问题。我已经为viewpager和listfragment导入了lib,但仍然没有获得资源标识符错误。
<com.handmark.pulltorefresh.library.PullToRefreshListView
xmlns:ptr="http://schemas.android.com/apk/res-auto"
android:id="@+id/ptrlvAddFollowingResult"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:layout_below="@id/actvAddFollowingSearch"
android:layout_centerHorizontal="true"
android:cacheColorHint="#00000000"
android:divider="#19000000"
android:dividerHeight="4dp"
android:fadingEdge="none"
android:fastScrollEnabled="true"
android:footerDividersEnabled="false"
android:headerDividersEnabled="false"
android:smoothScrollbar="true"
ptr:ptrMode="pullFromEnd"
/>
答案 0 :(得分:0)
你需要包含declare-styleable&#34; PullToRefresh&#34;在您自己项目的attrs.xml中的ViewPagerIndicator库的attrs.xml中。 就我而言,那可以解决问题。
答案 1 :(得分:0)
如果您将此库与资源一起使用,您是否在project.properties
中添加了以下行?
android.library.reference.1=path/pull-to-refresh
如果您已经android.library.reference.1
,则需要使用android.library.reference.n
.n index in the references must begin at "1" and increase uniformly without "holes"
(来自here)。