gridview - Chris Banes' Android-PullToRefresh java.lang.NoSuchFieldError: com.handmark.pulltorefresh.library.R$id.pull_to_refresh_sub_text -
i'm trying use https://github.com/chrisbanes/android-pulltorefresh/. followed example got error java.lang.nosuchfielderror: com.handmark.pulltorefresh.library.r$id.pull_to_refresh_sub_text
this grid:
<com.handmark.pulltorefresh.library.pulltorefreshgridview xmlns:ptr="http://schemas.android.com/apk/res/com.abc.myproject" android:id="@+id/gv_image" android:layout_width="match_parent" android:layout_height="match_parent" android:listselector="#00000000" android:padding="4dp" android:horizontalspacing="4dp" android:verticalspacing="4dp" android:gravity="center" android:numcolumns="3" android:columnwidth="128px" android:stretchmode="columnwidth" ptr:ptrmode="pulldownfromtop" ptr:ptrdrawable="@drawable/android" /> when run have above exception. added pulltorefresh project in workspace , make project's library. added jar file. think error because line xmlns:ptr="http://schemas.android.com/apk/res/com.abc.myproject"?
i traced code , line caused exception in loadinglayout.java: msubheadertext = (textview) header.findviewbyid(r.id.pull_to_refresh_sub_text);
am doing wrong?
thanks!
android sdk tools r17 adds support custom views custom attributes in libraries. layouts using custom attributes must use namespace uri:
http://schemas.android.com/apk/res-auto
instead of uri includes app package name. uri replaced app specific 1 @ build time.
Comments
Post a Comment