I am using Google SwipeRefreshLayout . and I have a few questions.
- How to lock the touch screen while it is active
onRefresh() ? How to make progress in the center of rotation of the screen instead of the top during the update?
swipeLayout = (SwipeRefreshLayout) v.findViewById(R.id.swipe_status_info); swipeLayout.setColorSchemeColors(Color.RED, Color.GREEN, Color.BLUE, Color.CYAN); swipeLayout.setOnRefreshListener(this); @Override public void onRefresh() { clearTable(holidayTable); clearTable(cityayTable); setData(); }
source share