当前位置: 首页>>代码示例>>Java>>正文


Java FaceView类代码示例

本文整理汇总了Java中com.android.camera.ui.FaceView的典型用法代码示例。如果您正苦于以下问题:Java FaceView类的具体用法?Java FaceView怎么用?Java FaceView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


FaceView类属于com.android.camera.ui包,在下文中一共展示了FaceView类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: PhotoUI

import com.android.camera.ui.FaceView; //导入依赖的package包/类
public PhotoUI(CameraActivity activity, PhotoController controller, View parent) {
    mActivity = activity;
    mController = controller;
    mRootView = parent;

    ViewGroup moduleRoot = (ViewGroup) mRootView.findViewById(R.id.module_layout);
    mActivity.getLayoutInflater().inflate(R.layout.photo_module,
             moduleRoot, true);
    initIndicators();
    mFocusUI = (FocusUI) mRootView.findViewById(R.id.focus_overlay);
    mPreviewOverlay = (PreviewOverlay) mRootView.findViewById(R.id.preview_overlay);
    mCountdownView = (CountDownView) mRootView.findViewById(R.id.count_down_view);
    // Show faces if we are in debug mode.
    if (DebugPropertyHelper.showCaptureDebugUI()) {
        mFaceView = (FaceView) mRootView.findViewById(R.id.face_view);
    } else {
        mFaceView = null;
    }

    if (mController.isImageCaptureIntent()) {
        initIntentReviewImageView();
    }
}
 
开发者ID:jameliu,项目名称:Camera2,代码行数:24,代码来源:PhotoUI.java

示例2: PhotoUI

import com.android.camera.ui.FaceView; //导入依赖的package包/类
public PhotoUI(CameraActivity activity, PhotoController controller, View parent) {
    mActivity = activity;
    mController = controller;
    mRootView = parent;

    mActivity.getLayoutInflater().inflate(R.layout.photo_module,
            (ViewGroup) mRootView, true);
    mRenderOverlay = (RenderOverlay) mRootView.findViewById(R.id.render_overlay);
    mFlashOverlay = mRootView.findViewById(R.id.flash_overlay);
    // display the view
    mTextureView = (TextureView) mRootView.findViewById(R.id.preview_content);
    mTextureView.setSurfaceTextureListener(this);
    mTextureView.addOnLayoutChangeListener(mLayoutListener);
    initIndicators();

    mShutterButton = (ShutterButton) mRootView.findViewById(R.id.shutter_button);
    mSwitcher = (ModuleSwitcher) mRootView.findViewById(R.id.camera_switcher);
    mSwitcher.setCurrentIndex(ModuleSwitcher.PHOTO_MODULE_INDEX);
    mSwitcher.setSwitchListener(mActivity);
    mMenuButton = mRootView.findViewById(R.id.menu);
    ViewStub faceViewStub = (ViewStub) mRootView
            .findViewById(R.id.face_view_stub);
    if (faceViewStub != null) {
        faceViewStub.inflate();
        mFaceView = (FaceView) mRootView.findViewById(R.id.face_view);
        setSurfaceTextureSizeChangedListener(mFaceView);
    }
    mCameraControls = (CameraControls) mRootView.findViewById(R.id.camera_controls);
    mAnimationManager = new AnimationManager();
}
 
开发者ID:asm-products,项目名称:nexus-camera,代码行数:31,代码来源:PhotoUI.java


注:本文中的com.android.camera.ui.FaceView类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。