Skip to content

Commit

Permalink
bug fix: camera not showing on mobile portrait screen
Browse files Browse the repository at this point in the history
  • Loading branch information
SidharthMudgil committed Aug 11, 2023
1 parent 5635d30 commit 33e3a4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/sidharth/lg_motion/util/KMLUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object KMLUtils {
<ScreenOverlay>
<name>Logo</name>
<Icon>
<href>https://raw.githubusercontent.com/SidharthMudgil/lg-motion/85ddb452e2037772a40884ff3254d48d6ecc51de/logo.png</href>
<href>https://raw.githubusercontent.com/SidharthMudgil/lg-motion/5635d30c536b04004ce131c2c940bd3b0883a305/logo.png</href>
</Icon>
<overlayXY x="0" y="1" xunits="fraction" yunits="fraction"/>
<screenXY x="0.02" y="0.95" xunits="fraction" yunits="fraction"/>
Expand Down
15 changes: 9 additions & 6 deletions app/src/main/res/layout/fragment_camera.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,24 @@
<include
layout="@layout/info_face_gestures"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHeight_percent=".5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1" />

<androidx.camera.view.PreviewView
android:id="@+id/view_finder"
android:layout_width="0dp"
android:layout_height="0dp"
android:alpha=".3"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintDimensionRatio=".8"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHeight_percent=".15"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintHeight_percent=".5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1"
app:layout_constraintVertical_bias="0"
app:scaleType="fillStart" />

</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 33e3a4f

Please sign in to comment.