android 从Activity 获取 rootView 根节点
1 private static View getRootView(Activity context) 2 { 3 return ((ViewGroup)context.findViewById(android.R.id.content)).getChildAt(0); 4 }
联系方式:emhhbmdfbGlhbmcxOTkxQDEyNi5jb20=
1 private static View getRootView(Activity context) 2 { 3 return ((ViewGroup)context.findViewById(android.R.id.content)).getChildAt(0); 4 }