2018-09-20 13:27:18 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-09-02 17:04:43 -03:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-07-18 10:57:52 -04:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2021-09-02 17:04:43 -03:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2019-07-18 10:57:52 -04:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
2018-09-20 13:27:18 -07:00
|
|
|
|
2019-07-31 10:08:56 -04:00
|
|
|
<org.thoughtcrime.securesms.mediasend.CameraButtonView
|
2018-09-20 13:27:18 -07:00
|
|
|
android:id="@+id/camera_capture_button"
|
2019-10-09 17:16:23 -03:00
|
|
|
android:layout_width="96dp"
|
|
|
|
android:layout_height="96dp"
|
2022-06-20 16:18:44 -03:00
|
|
|
android:layout_marginEnd="18dp"
|
2019-07-31 10:08:56 -04:00
|
|
|
android:contentDescription="@string/CameraXFragment_capture_description"
|
2019-10-09 17:16:23 -03:00
|
|
|
app:imageCaptureSize="60dp"
|
2021-09-02 17:04:43 -03:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-07-18 10:57:52 -04:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-09-02 17:04:43 -03:00
|
|
|
app:recordSize="42dp" />
|
2018-09-20 13:27:18 -07:00
|
|
|
|
2019-09-06 13:28:54 -03:00
|
|
|
<org.thoughtcrime.securesms.mediasend.camerax.CameraXFlashToggleView
|
|
|
|
android:id="@+id/camera_flash_button"
|
2021-09-02 17:04:43 -03:00
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="36dp"
|
2019-09-06 13:28:54 -03:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="14dp"
|
2021-09-02 17:04:43 -03:00
|
|
|
android:background="@drawable/circle_transparent_black_40"
|
|
|
|
android:padding="6dp"
|
2019-09-06 13:28:54 -03:00
|
|
|
android:src="@drawable/camerax_flash_toggle"
|
2022-06-20 16:18:44 -03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-09-06 13:28:54 -03:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
2021-09-02 17:04:43 -03:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
2018-09-20 13:27:18 -07:00
|
|
|
android:id="@+id/camera_flip_button"
|
2022-06-20 16:18:44 -03:00
|
|
|
android:layout_width="52dp"
|
|
|
|
android:layout_height="52dp"
|
|
|
|
android:layout_marginTop="36dp"
|
|
|
|
android:layout_marginEnd="40dp"
|
|
|
|
android:background="@drawable/media_selection_camera_switch_background"
|
2019-07-31 10:08:56 -04:00
|
|
|
android:contentDescription="@string/CameraXFragment_change_camera_description"
|
2021-09-02 17:04:43 -03:00
|
|
|
android:scaleType="centerInside"
|
2018-09-20 13:27:18 -07:00
|
|
|
android:visibility="gone"
|
2022-06-20 16:18:44 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-07-18 10:57:52 -04:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2022-06-20 16:18:44 -03:00
|
|
|
app:srcCompat="@drawable/ic_switch_camera_28"
|
2018-09-20 13:27:18 -07:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2022-06-20 16:18:44 -03:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/camera_gallery_button_background"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="40dp"
|
|
|
|
android:layout_marginBottom="36dp"
|
|
|
|
android:background="@drawable/circle_tintable"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
|
|
android:id="@+id/camera_gallery_button"
|
|
|
|
android:layout_width="52dp"
|
|
|
|
android:layout_height="52dp"
|
|
|
|
android:contentDescription="@string/CameraXFragment_open_gallery_description"
|
|
|
|
android:padding="2dp"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Signal.Circle"
|
|
|
|
tools:src="@color/black" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
2019-07-18 10:57:52 -04:00
|
|
|
|
2021-09-02 17:04:43 -03:00
|
|
|
<org.thoughtcrime.securesms.mediasend.v2.MediaCountIndicatorButton
|
|
|
|
android:id="@+id/camera_review_button"
|
2019-07-18 10:57:52 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-06-20 16:18:44 -03:00
|
|
|
android:layout_marginEnd="40dp"
|
|
|
|
android:layout_marginBottom="36dp"
|
2021-09-02 17:04:43 -03:00
|
|
|
android:background="@drawable/v2_media_count_indicator_background"
|
2019-07-18 10:57:52 -04:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2022-06-20 16:18:44 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2021-09-02 17:04:43 -03:00
|
|
|
app:layout_constraintStart_toStartOf="@id/camera_capture_button"
|
2019-07-18 10:57:52 -04:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2019-09-06 13:28:54 -03:00
|
|
|
<View
|
|
|
|
android:id="@+id/camera_selfie_flash"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:alpha="0"
|
2021-09-02 17:04:43 -03:00
|
|
|
android:background="@color/white"
|
2019-09-06 13:28:54 -03:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2021-09-02 17:04:43 -03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-09-06 13:28:54 -03:00
|
|
|
|
2019-07-18 10:57:52 -04:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2018-09-20 13:27:18 -07:00
|
|
|
|