Skip to content

Commit

Permalink
Improve sample with margin for older devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkistner committed Feb 6, 2016
1 parent 7d2c96f commit 2e5ec9e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sample/src/main/res/layout/capture_small.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">

<com.journeyapps.barcodescanner.CompoundBarcodeView
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_alignParentTop="true"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="50dp"
Expand All @@ -30,6 +34,6 @@
android:layout_marginBottom="150dp"
android:id="@+id/zxing_barcode_scanner"
app:zxing_use_texture_view="false"
app:zxing_preview_scaling_strategy="centerCrop"/>
app:zxing_preview_scaling_strategy="fitXY"/>

</FrameLayout>
</RelativeLayout>

0 comments on commit 2e5ec9e

Please sign in to comment.