从当前Activity 获取根视图(Root view )
时间:2015-04-23 18:02:51
收藏:0
阅读:289
1. getWindow().getDecorView().findViewById(android.R.id.content)
2. private static View getRootView(Activity context)
{
return ((ViewGroup)context.findViewById(android.R.id.content)).getChildAt(0);
}
原文:http://my.oschina.net/u/855532/blog/405565
评论(0)