diff --git a/android/ZBarScannerActivity.java b/android/ZBarScannerActivity.java index b04fa97..6b3bb93 100644 --- a/android/ZBarScannerActivity.java +++ b/android/ZBarScannerActivity.java @@ -94,11 +94,6 @@ implements SurfaceHolder.Callback { // Set content view setContentView(getResourceId("layout/cszbarscanner")); - // Update view with customisable strings - TextView view_textTitle = (TextView) findViewById(getResourceId("id/csZbarScannerTitle")); - TextView view_textInstructions = (TextView) findViewById(getResourceId("id/csZbarScannerInstructions")); - view_textTitle.setText(textTitle); - view_textInstructions.setText(textInstructions); // Create preview SurfaceView scannerSurface = new SurfaceView (this) { @@ -118,8 +113,6 @@ implements SurfaceHolder.Callback { // Add preview SurfaceView to the screen ((FrameLayout) findViewById(getResourceId("id/csZbarScannerView"))).addView(scannerSurface); - findViewById(getResourceId("id/csZbarScannerTitle")).bringToFront(); - findViewById(getResourceId("id/csZbarScannerInstructions")).bringToFront(); } @Override diff --git a/android/res/layout/cszbarscanner.xml b/android/res/layout/cszbarscanner.xml index 168e92d..7292e7a 100644 --- a/android/res/layout/cszbarscanner.xml +++ b/android/res/layout/cszbarscanner.xml @@ -3,42 +3,13 @@ android:id="@+id/csZbarScannerViewContainer" android:layout_width="match_parent" android:layout_height="match_parent" > - + - - - - + - +