閱讀569 返回首頁    go 微軟 go Office


Android 動態添加控件

 相機源碼中 VideoCamera.java:


ViewGroup rootView = (ViewGroup) findViewById(R.id.video_camera);
        LayoutInflater inflater = this.getLayoutInflater();


View controlBar = inflater.inflate(
                    R.layout.attach_camera_control, rootView);
            controlBar.findViewById(R.id.btn_cancel).setOnClickListener(this);
            ImageView retake =
                    (ImageView) controlBar.findViewById(R.id.btn_retake);

最後更新:2017-04-03 18:52:05

  上一篇:go VB 循環播放視頻文件
  下一篇:go Android Camera數據流分析全程記錄(overlay方式)