mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-10-22 14:04:54 -04:00
Fix barcode centering
This commit is contained in:
1 parent
7970bb8a40
commit
454052638f
1 file changed
+6
@@ -405,6 +405,9 @@ public class LoyaltyCardViewActivity extends AppCompatActivity
|
||||
// Move barcode to top
|
||||
barcodeImage.setScaleType(ImageView.ScaleType.FIT_START);
|
||||
|
||||
// Prevent centering
|
||||
barcodeImage.setAdjustViewBounds(false);
|
||||
|
||||
// Set current state
|
||||
barcodeIsFullscreen = true;
|
||||
}
|
||||
@@ -429,6 +432,9 @@ public class LoyaltyCardViewActivity extends AppCompatActivity
|
||||
// Turn barcode back to normal
|
||||
barcodeImage.setLayoutParams(barcodeImageState);
|
||||
|
||||
// Fix barcode centering
|
||||
barcodeImage.setAdjustViewBounds(true);
|
||||
|
||||
// Set current state
|
||||
barcodeIsFullscreen = false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user