Skip to content

Instantly share code, notes, and snippets.

@scruffyfox
Created September 20, 2013 13:27
Show Gist options
  • Select an option

  • Save scruffyfox/6637543 to your computer and use it in GitHub Desktop.

Select an option

Save scruffyfox/6637543 to your computer and use it in GitHub Desktop.
Get fragment from position and view ID
private String getFragmentTag(int viewId, int index)
{
return "android:switcher:" + viewId + ":" + index;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment