Skip to content

Instantly share code, notes, and snippets.

@mandhor
Created April 6, 2015 21:54
Show Gist options
  • Save mandhor/92ce23904437d83e673d to your computer and use it in GitHub Desktop.
Save mandhor/92ce23904437d83e673d to your computer and use it in GitHub Desktop.
[ SOLUTION ] SwipeRefreshLayout spinner not showing when .setRefreshing(true) called right after creating Fragment. ( android bug solution swiperefreshlayout pull to refresh not showing )
TypedValue typed_value = new TypedValue();
getActivity().getTheme().resolveAttribute(android.support.v7.appcompat.R.attr.actionBarSize, typed_value, true);
mSwipeRefreshLayout.setProgressViewOffset(false, 0, getResources().getDimensionPixelSize(typed_value.resourceId));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment