163 lines
6.5 KiB
XML
163 lines
6.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2019 Thomas Schneider
|
|
|
|
This file is a part of Fedilab
|
|
|
|
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.
|
|
|
|
Fedilab 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 Fedilab; if not,
|
|
see <http://www.gnu.org/licenses>.
|
|
-->
|
|
|
|
<android.support.constraint.ConstraintLayout xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/rootView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@android:color/black"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
|
<android.support.constraint.Guideline
|
|
android:id="@+id/guideline"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintGuide_end="?attr/actionBarSize" />
|
|
|
|
<ja.burhanrashid52.photoeditor.PhotoEditorView
|
|
android:id="@+id/photoEditorView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toTopOf="@+id/rvConstraintTools"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
/>
|
|
|
|
<ImageView
|
|
android:id="@+id/imgUndo"
|
|
android:layout_width="50dp"
|
|
android:layout_height="wrap_content"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_undo"
|
|
app:layout_constraintBottom_toTopOf="@+id/rvConstraintTools"
|
|
app:layout_constraintEnd_toStartOf="@+id/imgRedo"
|
|
android:contentDescription="@string/undo" />
|
|
|
|
<ImageView
|
|
android:id="@+id/imgRedo"
|
|
android:layout_width="50dp"
|
|
android:layout_height="wrap_content"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_redo"
|
|
app:layout_constraintBottom_toTopOf="@+id/rvConstraintTools"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:contentDescription="@string/redo" />
|
|
|
|
<ImageView
|
|
android:id="@+id/imgGallery"
|
|
android:layout_width="50dp"
|
|
android:layout_height="wrap_content"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_gallery"
|
|
app:layout_constraintBottom_toTopOf="@+id/rvConstraintTools"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
android:contentDescription="@string/gallery"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/imgCamera"
|
|
android:layout_width="50dp"
|
|
android:layout_height="wrap_content"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_camera"
|
|
app:layout_constraintBottom_toTopOf="@+id/rvConstraintTools"
|
|
app:layout_constraintStart_toEndOf="@id/imgGallery"
|
|
android:contentDescription="@string/camera"
|
|
/>
|
|
|
|
<ImageView
|
|
android:id="@+id/imgClose"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_margin="8dp"
|
|
android:src="@drawable/ic_close"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
android:contentDescription="@string/close"
|
|
app:layout_constraintTop_toBottomOf="@+id/guideline" />
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
android:id="@+id/rvConstraintTools"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingBottom="4dp"
|
|
android:paddingTop="4dp"
|
|
app:layoutManager="android.support.v7.widget.LinearLayoutManager"
|
|
app:layout_constraintBottom_toTopOf="@+id/guideline"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
tools:listitem="@layout/row_editing_tools" />
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
android:id="@+id/rvFilterView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:orientation="horizontal"
|
|
app:layoutManager="android.support.v7.widget.LinearLayoutManager"
|
|
app:layout_constraintBottom_toBottomOf="@+id/rvConstraintTools"
|
|
app:layout_constraintStart_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/rvConstraintTools"
|
|
tools:listitem="@layout/row_filter_view" />
|
|
|
|
<TextView
|
|
android:id="@+id/txtCurrentTool"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginStart="8dp"
|
|
android:singleLine="true"
|
|
android:text="@string/app_name"
|
|
android:textColor="@android:color/white"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/guideline" />
|
|
|
|
<Button
|
|
android:id="@+id/send"
|
|
style="@style/Widget.AppCompat.Button.Colored"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="45dp"
|
|
android:layout_gravity="end"
|
|
android:gravity="center"
|
|
android:padding="0dp"
|
|
android:layout_margin="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/imgSave"
|
|
app:layout_constraintTop_toBottomOf="@+id/guideline"
|
|
android:text="@string/validate" />
|
|
|
|
<ImageView
|
|
android:id="@+id/imgSave"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:src="@drawable/ic_save_gallery"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:contentDescription="@string/save"
|
|
app:layout_constraintTop_toBottomOf="@+id/guideline" />
|
|
|
|
</android.support.constraint.ConstraintLayout> |