Custom Swipe Refresh Loader..
try {
Field f = mSwipeRefreshLayout.getClass().getDeclaredField("mCircleView");
f.setAccessible(true);
ImageView img = (ImageView)f.get(mSwipeRefreshLayout);
Glide.with(getApplicationContext()).load(Uri.parse(swipe)).into(img);
} catch (NoSuchFieldException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
Add string variable "swipe"
To set Image url (GIF,PNG,JPG)
Set Swipe layout id = "mSwipeRefreshLayout"
import : java.lang.reflect.*
Post a Comment