Activity 获取 view getContentView

来源:互联网 发布:postgresql mysql 编辑:程序博客网 时间:2024/05/22 06:29
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);}

1 0