Created
November 18, 2016 14:29
-
-
Save kbshl/5101606672ad60377402841237053a30 to your computer and use it in GitHub Desktop.
Get root ViewGroup from Titanium Activity - Source: http://stackoverflow.com/questions/4486034/get-root-view-from-current-activity and http://stackoverflow.com/questions/24612364/how-to-get-root-viewgroup-from-a-layout-that-was-set-using-setcontentview
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
ViewGroup rootViewGroup = (ViewGroup) activity.getWindow().getDecorView().findViewById(android.R.id.content); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment