Is it possible to perform SwipeRefreshLayout
functionality without showing progress spinner all together. Right now its working perfectly fine with its default behavior of pull to refresh shows Progress spinner and onRefresh()
I hide It. But I want to hide it all together just want to use the pull to refresh functionality but without progress spinner.
After Done some RnD found a solution that may help others who want to achieve such functionality
try {
Field f = mSwipeRefreshLayout.getClass().getDeclaredField("mCircleView");
f.setAccessible(true);
ImageView img = (ImageView)f.get(mSwipeRefreshLayout);
img.setAlpha(0.0f);
} catch (NoSuchFieldException | IllegalAccessException e) {
e.printStackTrace();
}
swipeRefreshLayout.setProgressViewEndTarget(false, 0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With