private void initControl() { viewfinderView = (ViewfinderView) findViewById(R.id.viewfinder_view); btn_back = (Button) findViewById(R.id.btn_back); btn_back.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { CaptureActivity.this.finish(); } }); }
private void initControl() { viewfinderView = (ViewfinderView) findViewById(R.id.viewfinder_view); mTitle = (TextView) findViewById(R.id.details_textview_title); mTitle.setText(R.string.scan_title); mGoHome = (ImageView) findViewById(R.id.details_imageview_gohome); mGoHome.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { finish(); } }); }
public ViewfinderView getViewfinderView() { return viewfinderView; }