您的位置:首页 > 其它

Activity 获取 view getContentView

2014-05-17 22:29 731 查看
public static View getContentView(Activity ac){
ViewGroup view = (ViewGroup)ac.getWindow().getDecorView();
FrameLayout content = (FrameLayout)view.findViewById(android.R.id.content);
return content.getChildAt(0);
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: