[英]no resource identifier found for 'ptrMode' in package
I need help getting rid of this error, i wonder if any of you guys have encountered this problem while using pulltorefresh. 我需要摆脱该错误的帮助,我想知道你们中的任何人在使用pulltorefresh时是否遇到此问题。 i have imported the lib for both viewpager and listfragment and still getting no resource identifier error. 我已经为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"
/>
You need to include the declare-styleable "PullToRefresh" at attrs.xml of the ViewPagerIndicator library in the attrs.xml of your own project. 您需要在您自己项目的attrs.xml中的ViewPagerIndicator库的attrs.xml中包括可声明样式的“ PullToRefresh”。 In my case, thats solve the problem. 就我而言,这可以解决问题。
In case you use this library with resources, did you add the following line in project.properties
? 如果您将此库与资源一起使用,是否在project.properties
添加了以下行?
android.library.reference.1=path/pull-to-refresh
if you already have android.library.reference.1
you need to use android.library.reference.n
where .n index in the references must begin at "1" and increase uniformly without "holes"
(from here ). 如果您已经有了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.