Search in sources :

Example 1 with ViewfinderView

use of com.google.zxing.view.ViewfinderView in project android-app by eoecn.

the class CaptureActivity method initControl.

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();
        }
    });
}
Also used : OnClickListener(android.view.View.OnClickListener) SurfaceView(android.view.SurfaceView) ImageView(android.widget.ImageView) View(android.view.View) ViewfinderView(com.google.zxing.view.ViewfinderView) TextView(android.widget.TextView)

Aggregations

SurfaceView (android.view.SurfaceView)1 View (android.view.View)1 OnClickListener (android.view.View.OnClickListener)1 ImageView (android.widget.ImageView)1 TextView (android.widget.TextView)1 ViewfinderView (com.google.zxing.view.ViewfinderView)1