Created
April 6, 2018 12:25
-
-
Save Subtle-fox/674f250632af6ae18b3a7d548b45c045 to your computer and use it in GitHub Desktop.
Get root view in activity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static View getParentView(Activity activity) { | |
return ((ViewGroup) activity.findViewById(android.R.id.content)).getChildAt(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment