Skip to content

Commit 168b598

Browse files
committed
Match grid size to camera preview
1 parent 43cafbd commit 168b598

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

app/src/main/res/layout/activity_main.xml

+9-5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@
4343
app:layout_constraintEnd_toEndOf="@id/preview"
4444
app:layout_constraintBottom_toBottomOf="@id/preview" />
4545

46+
<app.grapheneos.camera.ui.CustomGrid
47+
android:id="@+id/preview_grid"
48+
android:layout_width="0dp"
49+
android:layout_height="0dp"
50+
app:layout_constraintTop_toTopOf="@id/preview"
51+
app:layout_constraintStart_toStartOf="@id/preview"
52+
app:layout_constraintEnd_toEndOf="@id/preview"
53+
app:layout_constraintBottom_toBottomOf="@id/preview" />
54+
4655
<ImageView
4756
android:layout_width="84dp"
4857
android:layout_height="84dp"
@@ -148,11 +157,6 @@
148157
android:shadowRadius="1.6"
149158
android:textColor="@android:color/white"/>
150159

151-
<app.grapheneos.camera.ui.CustomGrid
152-
android:id="@+id/preview_grid"
153-
android:layout_width="match_parent"
154-
android:layout_height="match_parent"/>
155-
156160
<ImageView
157161
android:id="@+id/main_overlay"
158162
android:scaleType="fitStart"

0 commit comments

Comments
 (0)