I\'m quite new to android and I\'m exploring the sample code on google website. The code I\'m on currently is the SwipeRefreshLayout: http://developer.android.com/samples/Sw
although you can't change it, you can still hide it and then display your own once triggered :-)
SwipeRefreshLayout swiperefresh = (SwipeRefreshLayout)root.findViewById(R.id.swiperefresh);
swiperefresh.setOnRefreshListener(this);
swiperefresh.setColorSchemeColors(0,0,0,0);
swiperefresh.setProgressBackgroundColor(android.R.color.transparent);
Notes:
in eclipse you have to add @SuppressLint("ResourceAsColor") to compile this.
you still need to call setRefreshing(false) at an appropriate point in time else onRefresh doesn't trigger again.