Last active
July 24, 2020 10:17
-
-
Save doomSDey/19a91017427a4db720f78e353fc69fe7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<SurfaceView | |
android:id="@+id/overlay" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<androidx.camera.view.PreviewView | |
android:id="@+id/previewView" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintHorizontal_bias="0.0" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="@+id/overlay" | |
app:layout_constraintVertical_bias="0.0"> | |
</androidx.camera.view.PreviewView> | |
<TextView | |
android:id="@+id/et_confirm_text" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:gravity="center_horizontal" | |
android:padding="12dp" | |
android:text="Decoded Text" | |
android:textColor="@android:color/white" | |
android:textSize="20sp" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintVertical_bias="0.96" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment