简体   繁体   English

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

[英]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.

相关问题 在包“android”中找不到属性“textsize”的资源标识符 - No resource identifier found for attribute 'textsize' in package 'android' “在包‘android’中找不到属性‘showAsAction’的资源标识符” - "No resource identifier found for attribute 'showAsAction' in package 'android'" 在包中找不到属性“ cacheColorHint”的资源标识符 - No resource identifier found for attribute 'cacheColorHint' in package 在Android套件中找不到属性&#39;indeterminateTintMode&#39;的资源标识符 - No resource identifier found for attribute 'indeterminateTintMode' in package Android 在包“ android”中找不到属性“ fullBackupContent”的资源标识符 - No resource identifier found for attribute 'fullBackupContent' in package 'android Xamarin android在包中找不到属性的资源标识符 - Xamarin android No resource identifier found for attribute in package 在'android'包中找不到属性'appComponentFactory'的资源标识符 - No resource identifier found for attribute 'appComponentFactory' in package 'android' 在包“ android”中找不到属性“ parentActivityName”的资源标识符 - No resource identifier found for attribute 'parentActivityName' in package 'android' 错误:在包6中找不到属性&#39;showsAsAction&#39;的资源标识符 - Error: No resource identifier found for attribute 'showsAsAction' in package 6 在包中找不到属性“ showAsAction”的资源标识符 - No resource identifier found for attribute 'showAsAction' in package
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM