Add CameraXFlashToggleView and selfie flash.

This commit is contained in:
alex-signal
2019-09-06 13:28:54 -03:00
committed by Greyson Parrelli
parent 70347e754c
commit f81c0b448e
24 changed files with 298 additions and 4 deletions

View File

@@ -17,6 +17,16 @@
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
<org.thoughtcrime.securesms.mediasend.camerax.CameraXFlashToggleView
android:id="@+id/camera_flash_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="14dp"
android:src="@drawable/camerax_flash_toggle"
app:layout_constraintStart_toEndOf="@+id/camera_flip_button"
app:layout_constraintTop_toTopOf="parent" />
<ImageButton
android:id="@+id/camera_flip_button"
android:layout_width="wrap_content"
@@ -60,5 +70,16 @@
app:layout_constraintEnd_toEndOf="@id/camera_capture_button"
tools:visibility="visible" />
<View
android:id="@+id/camera_selfie_flash"
android:layout_width="0dp"
android:layout_height="0dp"
android:alpha="0"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:background="@color/white" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -17,6 +17,16 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<org.thoughtcrime.securesms.mediasend.camerax.CameraXFlashToggleView
android:id="@+id/camera_flash_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:layout_marginEnd="16dp"
android:src="@drawable/camerax_flash_toggle"
app:layout_constraintEnd_toStartOf="@+id/camera_flip_button"
app:layout_constraintTop_toTopOf="parent" />
<ImageButton
android:id="@+id/camera_flip_button"
android:layout_width="wrap_content"
@@ -61,5 +71,16 @@
app:layout_constraintEnd_toEndOf="parent"
tools:visibility="visible" />
<View
android:id="@+id/camera_selfie_flash"
android:layout_width="0dp"
android:layout_height="0dp"
android:alpha="0"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:background="@color/white" />
</androidx.constraintlayout.widget.ConstraintLayout>