簡體   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