From 891636b51f28ba8133a3a4d89bc45bb5a18e02ca Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Sat, 10 Feb 2018 00:33:49 -0500 Subject: [PATCH] Use ConstraintLayout for card view layout This way the size of the barcode can be 1/2 the screen. --- app/build.gradle | 1 + .../res/layout/loyalty_card_view_layout.xml | 28 +++++++++++++------ 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 6e1c2695b..6685fad6d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -48,6 +48,7 @@ dependencies { compile 'com.journeyapps:zxing-android-embedded:3.5.0@aar' compile 'com.google.zxing:core:3.3.0' compile 'org.apache.commons:commons-csv:1.5' + compile 'com.android.support.constraint:constraint-layout:1.0.2' compile group: 'com.google.guava', name: 'guava', version: '20.0' compile 'com.github.apl-devs:appintro:v4.2.0' testCompile 'junit:junit:4.12' diff --git a/app/src/main/res/layout/loyalty_card_view_layout.xml b/app/src/main/res/layout/loyalty_card_view_layout.xml index 7ab5423bb..f5cab45c6 100644 --- a/app/src/main/res/layout/loyalty_card_view_layout.xml +++ b/app/src/main/res/layout/loyalty_card_view_layout.xml @@ -15,35 +15,47 @@ android:layout_height="fill_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior"> - + + - +