Skip to content

Instantly share code, notes, and snippets.

@thebuilder thebuilder/gist:5081990
Last active Jun 27, 2016

Embed
What would you like to do?
Get the root FrameLayout of an Android activity.
public FrameLayout getRootFramelayout() {
if (_root == null) _root = (FrameLayout) getActivity().getWindow().getDecorView().findViewById(android.R.id.content);
return (FrameLayout) _root.getChildAt(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.