Closed lixiang123321 closed 8 years ago
I have found the reason of this issue. It is not the different between ant or eclipse build lead to. Actually it is because my proguard setting is not matched.(keep class in library, but proguard the customLoadingLayout) Hope this answer can help other struggle in the same problem.
Should keep your PullToRefreshCustomLoadingLayout not Proguard. It works.
Hi, I have read the Customization guide, and I follow this section "Customizing icon and custom labels ( another way )" to customize my pullToRefresh view.
It works well in eclipse debug build. (customized) But Failed in ant release build. (isn't customized)
Could you please tell me what can I do to have a customized PullToRefresh view After ant build ? Thank you !
This is my customized step following the guide : 1、cause I don't need Flip and rotate, so I Override the LoadingLayout instead of FlipLoadingLayout(or RotateLoadingLayout). And I name it with PullToRefreshCustomLoadingLayout.
2、In my_project(not the pullToRefresh project)/assets/pulltorefresh.xml, I use <layout name="custom”> com.example.component.widget.layout.PullToRefreshCustomLoadingLayout
3、in layout, I use <com.handmark.pulltorefresh.library.PullToRefreshScrollView xmlns:ptr="http://schemas.android.com/apk/res-auto" ptr:ptrAnimationStyle="custom"