mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-12-17 22:21:57 +03:00
88 lines
4.1 KiB
XML
88 lines
4.1 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<!--
|
||
|
~ Nextcloud Talk application
|
||
|
~
|
||
|
~ @author Andy Scherzinger
|
||
|
~ @author Stefan Niedermann
|
||
|
~ Copyright (C) 2021 Andy Scherzinger <info@andy-scherzinger.de>
|
||
|
~ Copyright (C) 2021 Stefan Niedermann <info@niedermann.it>
|
||
|
~
|
||
|
~ This program is free software: you can redistribute it and/or modify
|
||
|
~ it under the terms of the GNU General Public License as published by
|
||
|
~ the Free Software Foundation, either version 3 of the License, or
|
||
|
~ at your option) any later version.
|
||
|
~
|
||
|
~ This program is distributed in the hope that it will be useful,
|
||
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
~ GNU General Public License for more details.
|
||
|
~
|
||
|
~ You should have received a copy of the GNU General Public License
|
||
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
-->
|
||
|
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
xmlns:tools="http://schemas.android.com/tools"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:background="@android:color/black"
|
||
|
android:orientation="vertical"
|
||
|
tools:theme="@style/TransparentTheme">
|
||
|
|
||
|
<androidx.camera.view.PreviewView
|
||
|
android:id="@+id/preview"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent" />
|
||
|
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_alignParentBottom="true"
|
||
|
android:background="@color/transparent_black"
|
||
|
android:paddingTop="@dimen/standard_padding"
|
||
|
android:paddingBottom="@dimen/standard_double_padding"
|
||
|
app:layout_constraintBottom_toBottomOf="parent">
|
||
|
|
||
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||
|
android:id="@+id/switchCamera"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:contentDescription="@string/take_photo_switch_camera"
|
||
|
android:tint="@android:color/white"
|
||
|
app:backgroundTint="@color/colorPrimary"
|
||
|
app:fabSize="mini"
|
||
|
app:layout_constraintBottom_toBottomOf="@id/takePhoto"
|
||
|
app:layout_constraintEnd_toStartOf="@id/takePhoto"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="@id/takePhoto"
|
||
|
tools:srcCompat="@drawable/ic_baseline_camera_front_24" />
|
||
|
|
||
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||
|
android:id="@+id/takePhoto"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:contentDescription="@string/take_photo"
|
||
|
android:tint="@android:color/white"
|
||
|
app:backgroundTint="@color/colorPrimary"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintEnd_toStartOf="@id/toggle_torch"
|
||
|
app:layout_constraintStart_toEndOf="@id/switchCamera"
|
||
|
app:srcCompat="@drawable/ic_baseline_photo_camera_24" />
|
||
|
|
||
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||
|
android:id="@+id/toggle_torch"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:contentDescription="@string/take_photo_toggle_torch"
|
||
|
android:tint="@android:color/white"
|
||
|
app:backgroundTint="@color/colorPrimary"
|
||
|
app:fabSize="mini"
|
||
|
app:layout_constraintBottom_toBottomOf="@id/takePhoto"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintStart_toEndOf="@id/takePhoto"
|
||
|
app:layout_constraintTop_toTopOf="@id/takePhoto"
|
||
|
tools:srcCompat="@drawable/ic_baseline_flash_on_24" />
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|