Customize Android Pull-To-Refresh Icon

女生的网名这么多〃 提交于 2019-12-07 14:56:51

问题


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

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

Thanks, Georg


回答1:


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.



来源:https://stackoverflow.com/questions/29093733/customize-android-pull-to-refresh-icon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!