Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customize Android Pull-To-Refresh Icon

is it possible to replace the Icon of the Pull-To-Reload, the circle-arrow, with something else?

Pull-To-Reload Icon

I'd like to have something like a trash-can instead.

Thanks, Georg

like image 521
Georg Avatar asked Sep 18 '25 12:09

Georg


1 Answers

If you are using the SwipeRefreshLayout, it seems there is no way to change the icon or animation for it yet. You can change the colors for the animation of spinning lines with the setColorSchemeColors method.

Some external pull to refresh libraries do let you do it, like Ultra Pull to Refresh by liaohuqiu. It seems to allow a lot of customisation of the effect.

like image 55
gatnowurry Avatar answered Sep 20 '25 05:09

gatnowurry