DroidFS/app/src/main/res/layout/activity_camera.xml

130 lines
5.0 KiB
XML
Raw Normal View History

2020-08-05 14:06:54 +02:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
2021-10-03 14:36:06 +02:00
tools:context=".CameraActivity"
2022-09-23 12:09:22 +02:00
android:background="@color/fullScreenBackgroundColor">
2020-08-05 14:06:54 +02:00
2020-12-19 19:55:54 +01:00
<androidx.camera.view.PreviewView
android:id="@+id/camera_preview"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_centerInParent="true"/>
2020-08-05 14:06:54 +02:00
<androidx.constraintlayout.widget.ConstraintLayout
2020-08-09 15:27:31 +02:00
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginTop="20dp">
<ImageButton
android:id="@+id/image_capture_mode"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/icon_high_quality"
android:background="#00000000"
android:scaleType="fitCenter"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/image_ratio"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
<ImageButton
2020-12-19 19:55:54 +01:00
android:id="@+id/image_ratio"
android:layout_width="30dp"
android:layout_height="30dp"
2020-12-19 19:55:54 +01:00
android:src="@drawable/icon_aspect_ratio"
android:background="#00000000"
android:scaleType="fitCenter"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/image_timer"
app:layout_constraintStart_toEndOf="@id/image_capture_mode"
app:layout_constraintTop_toTopOf="parent" />
<ImageButton
2020-08-09 15:27:31 +02:00
android:id="@+id/image_timer"
android:layout_width="30dp"
android:layout_height="30dp"
2020-08-12 15:14:38 +02:00
android:src="@drawable/icon_timer_off"
android:background="#00000000"
android:scaleType="fitCenter"
app:layout_constraintBottom_toBottomOf="parent"
2021-10-03 14:36:06 +02:00
app:layout_constraintEnd_toStartOf="@id/image_flash"
2020-12-19 19:55:54 +01:00
app:layout_constraintStart_toEndOf="@id/image_ratio"
app:layout_constraintTop_toTopOf="parent" />
<ImageButton
2021-10-03 14:36:06 +02:00
android:id="@+id/image_flash"
android:layout_width="30dp"
android:layout_height="30dp"
2021-10-03 14:36:06 +02:00
android:src="@drawable/icon_flash_auto"
android:background="#00000000"
android:scaleType="fitCenter"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
2020-12-19 19:55:54 +01:00
app:layout_constraintStart_toEndOf="@id/image_timer"
app:layout_constraintTop_toTopOf="parent" />
2020-08-09 15:27:31 +02:00
</androidx.constraintlayout.widget.ConstraintLayout>
2020-08-09 15:27:31 +02:00
<TextView
android:id="@+id/text_timer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="100sp"
android:layout_centerInParent="true"
android:visibility="gone"/>
2020-08-05 14:06:54 +02:00
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="30dp">
<ImageButton
2021-10-03 14:36:06 +02:00
android:id="@+id/image_mode_switch"
2020-08-05 14:06:54 +02:00
android:layout_width="30dp"
android:layout_height="30dp"
2021-10-03 14:36:06 +02:00
android:src="@drawable/icon_video"
android:background="#00000000"
android:scaleType="fitCenter"
2021-10-03 14:36:06 +02:00
android:layout_alignEnd="@id/layout_record_buttons"
2020-08-05 14:06:54 +02:00
android:layout_marginEnd="120dp"
2021-06-07 16:34:50 +02:00
android:layout_centerVertical="true"/>
2020-08-05 14:06:54 +02:00
2021-10-03 14:36:06 +02:00
<RelativeLayout
android:id="@+id/layout_record_buttons"
2020-08-05 14:06:54 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-10-03 14:36:06 +02:00
android:layout_centerInParent="true">
<ImageView
android:id="@+id/record_video_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/record_video_button"
android:visibility="gone"/>
<sushi.hardcore.droidfs.widgets.TakePhotoButton
android:id="@+id/take_photo_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/take_photo_button"/>
</RelativeLayout>
2020-08-05 14:06:54 +02:00
<ImageButton
2020-08-05 14:06:54 +02:00
android:id="@+id/image_camera_switch"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/icon_camera_front"
android:background="#00000000"
android:scaleType="fitCenter"
2021-10-03 14:36:06 +02:00
android:layout_alignStart="@id/layout_record_buttons"
2020-08-05 14:06:54 +02:00
android:layout_marginStart="120dp"
2021-06-07 16:34:50 +02:00
android:layout_centerVertical="true"/>
2020-08-05 14:06:54 +02:00
</RelativeLayout>
</RelativeLayout>