Skip to content

Commit

Permalink
refactoring(capture-sdk) Change align for tablets. Add string resources
Browse files Browse the repository at this point in the history
PP-143
  • Loading branch information
jackkray committed Aug 26, 2024
1 parent 1c86500 commit 8a2d2e2
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,20 +357,20 @@
app:layout_constraintStart_toStartOf="@+id/gc_injected_loading_indicator"
app:layout_constraintTop_toBottomOf="@+id/gc_injected_loading_indicator" />

</androidx.constraintlayout.widget.ConstraintLayout>
<include
layout="@layout/gc_detection_error_layout"
android:id="@+id/gc_detection_error_layout"
android:layout_width="@dimen/gc_photo_disabled_detection_width"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="@+id/gc_camera_frame_wrapper"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginHorizontal="@dimen/gc_large_32"
app:layout_constraintTop_toTopOf="parent"
android:visibility="gone"
app:layout_constraintVertical_bias="0.85" />

<include
layout="@layout/gc_detection_error_layout"
android:id="@+id/gc_detection_error_layout"
android:layout_width="@dimen/gc_photo_disabled_detection_width"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="@+id/gc_camera_frame_wrapper"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginHorizontal="@dimen/gc_large_32"
app:layout_constraintTop_toTopOf="parent"
android:visibility="gone"
app:layout_constraintVertical_bias="0.85" />
</androidx.constraintlayout.widget.ConstraintLayout>

<net.gini.android.capture.view.InjectedViewContainer
android:id="@+id/gc_injected_navigation_bar_container_bottom"
Expand Down
27 changes: 13 additions & 14 deletions capture-sdk/sdk/src/main/res/layout-sw600dp/gc_fragment_camera.xml
Original file line number Diff line number Diff line change
Expand Up @@ -359,21 +359,20 @@
app:layout_constraintStart_toStartOf="@+id/gc_injected_loading_indicator"
app:layout_constraintTop_toBottomOf="@+id/gc_injected_loading_indicator" />

</androidx.constraintlayout.widget.ConstraintLayout>

<include
layout="@layout/gc_detection_error_layout"
android:id="@+id/gc_detection_error_layout"
android:layout_width="@dimen/gc_photo_disabled_detection_width"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="@+id/gc_camera_frame_wrapper"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginHorizontal="@dimen/gc_large_32"
app:layout_constraintTop_toTopOf="parent"
android:visibility="gone"
app:layout_constraintVertical_bias="0.9" />
<include
layout="@layout/gc_detection_error_layout"
android:id="@+id/gc_detection_error_layout"
android:layout_width="@dimen/gc_photo_disabled_detection_width"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="@+id/gc_camera_frame_wrapper"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginHorizontal="@dimen/gc_large_32"
android:visibility="gone"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.9" />

</androidx.constraintlayout.widget.ConstraintLayout>

<net.gini.android.capture.view.InjectedViewContainer
android:id="@+id/gc_injected_navigation_bar_container_bottom"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="parent"
android:textColor="@color/gc_dark_02"
android:text="QR code scanning is currently unavailable. Please take a picture of your invoice instead."/>
android:text="@string/gc_detection_error_layout_description"/>


<TextView
Expand All @@ -26,5 +26,5 @@
app:layout_constraintBottom_toBottomOf="parent"
android:textColor="@color/gc_accent_01"
android:padding="@dimen/gc_large"
android:text="Dismiss"/>
android:text="@string/gc_snackbar_dismiss"/>
</androidx.constraintlayout.widget.ConstraintLayout>
1 change: 1 addition & 0 deletions capture-sdk/sdk/src/main/res/values-en/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,5 @@
<string name="gc_date_picker_select">Select</string>
<string name="gc_date_picker_cancel">Cancel</string>
<!-- endregion -->
<string name="gc_detection_error_layout_description">QR code scanning is currently unavailable. Please take a picture of your invoice instead.</string>
</resources>
1 change: 1 addition & 0 deletions capture-sdk/sdk/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,5 @@
<string name="gc_date_picker_select">Auswählen</string>
<string name="gc_date_picker_cancel">Abbrechen</string>
<!-- endregion -->
<string name="gc_detection_error_layout_description">QR-Code scannen ist derzeit nicht verfügbar. Bitte fotografieren Sie stattdessen Ihre Rechnung.</string>
</resources>

0 comments on commit 8a2d2e2

Please sign in to comment.