Search in sources :

Example 1 with FocusImageView

use of com.example.advanceDemo.view.FocusImageView in project LanSoEditor_advance by LanSoSdk.

the class CameraLayerFullLandscapeActivity method initView.

private void initView() {
    tvTime = (TextView) findViewById(R.id.id_fullscreen_timetv);
    playVideo = (LinearLayout) findViewById(R.id.id_fullscreen_saveplay);
    playVideo.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            if (SDKFileUtils.fileExist(dstPath)) {
                Intent intent = new Intent(CameraLayerFullLandscapeActivity.this, VideoPlayerActivity.class);
                intent.putExtra("videopath", dstPath);
                startActivity(intent);
            } else {
                Toast.makeText(CameraLayerFullLandscapeActivity.this, "目标文件不存在", Toast.LENGTH_SHORT).show();
            }
        }
    });
    playVideo.setVisibility(View.GONE);
    focusView = (FocusImageView) findViewById(R.id.id_fullscreen_focus_view);
    findViewById(R.id.id_fullscreen_flashlight).setOnClickListener(this);
    findViewById(R.id.id_fullscreen_frontcamera).setOnClickListener(this);
    findViewById(R.id.id_fullscreen_filter).setOnClickListener(this);
    initBeautyView();
}
Also used : OnClickListener(android.view.View.OnClickListener) Intent(android.content.Intent) View(android.view.View) DrawPadCameraView(com.lansosdk.videoeditor.DrawPadCameraView) FocusImageView(com.example.advanceDemo.view.FocusImageView) TextView(android.widget.TextView) VideoPlayerActivity(com.example.advanceDemo.VideoPlayerActivity)

Aggregations

Intent (android.content.Intent)1 View (android.view.View)1 OnClickListener (android.view.View.OnClickListener)1 TextView (android.widget.TextView)1 VideoPlayerActivity (com.example.advanceDemo.VideoPlayerActivity)1 FocusImageView (com.example.advanceDemo.view.FocusImageView)1 DrawPadCameraView (com.lansosdk.videoeditor.DrawPadCameraView)1