Skip to content

Instantly share code, notes, and snippets.

View thebuilder's full-sized avatar

Daniel Schmidt thebuilder

View GitHub Profile
@thebuilder
thebuilder / gist:5081990
Last active June 27, 2016 15:19
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);
}