繁体   English   中英

在包中找不到“ ptrMode”的资源标识符

[英]no resource identifier found for 'ptrMode' in package

我需要摆脱该错误的帮助,我想知道你们中的任何人在使用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" 
   />

您需要在您自己项目的attrs.xml中的ViewPagerIndicator库的attrs.xml中包括可声明样式的“ PullToRefresh”。 就我而言,这可以解决问题。

如果您将此库与资源一起使用,是否在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"中的.n index in the references must begin at "1" and increase uniformly without "holes" (从此处开始 )。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM