41e79a2df23e4928b5de1a451242b0405e3e4947
[mobile-ledger.git] / app / src / main / res / layout / hue_dialog.xml
1 <?xml version="1.0" encoding="utf-8"?><!--
2   ~ Copyright © 2019 Damyan Ivanov.
3   ~ This file is part of MoLe.
4   ~ MoLe is free software: you can distribute it and/or modify it
5   ~ under the term of the GNU General Public License as published by
6   ~ the Free Software Foundation, either version 3 of the License, or
7   ~ (at your opinion), any later version.
8   ~
9   ~ MoLe is distributed in the hope that it will be useful,
10   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
11   ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12   ~ GNU General Public License terms for details.
13   ~
14   ~ You should have received a copy of the GNU General Public License
15   ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
16   -->
17
18 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
19     xmlns:app="http://schemas.android.com/apk/res-auto"
20     android:layout_width="match_parent"
21     android:layout_height="wrap_content"
22     android:paddingStart="@dimen/activity_horizontal_margin"
23     android:paddingTop="@dimen/activity_vertical_margin"
24     android:paddingEnd="@dimen/activity_horizontal_margin"
25     android:paddingBottom="@dimen/activity_vertical_margin">
26
27     <net.ktnx.mobileledger.ui.HueRing
28         android:id="@+id/ring"
29         android:layout_width="match_parent"
30         android:layout_height="wrap_content"
31         app:layout_constraintBottom_toTopOf="@id/button_pane"
32         app:layout_constraintEnd_toEndOf="parent"
33         app:layout_constraintStart_toStartOf="parent"
34         app:layout_constraintTop_toTopOf="parent" />
35
36     <androidx.constraintlayout.widget.ConstraintLayout
37         android:id="@+id/button_pane"
38         android:layout_width="0dp"
39         android:layout_height="wrap_content"
40         android:layout_marginTop="@dimen/activity_horizontal_margin"
41         app:layout_constraintBottom_toBottomOf="parent"
42         app:layout_constraintEnd_toEndOf="parent"
43         app:layout_constraintStart_toStartOf="parent"
44         app:layout_constraintTop_toBottomOf="@id/ring">
45
46         <TextView
47             android:id="@+id/btn_cancel"
48             style="@style/Base.TextAppearance.AppCompat.Button"
49             android:layout_width="wrap_content"
50             android:layout_height="wrap_content"
51             android:text="@string/btn_cancel"
52             app:layout_constraintBottom_toBottomOf="parent"
53             app:layout_constraintEnd_toStartOf="@id/btn_default"
54             app:layout_constraintStart_toStartOf="parent"
55             app:layout_constraintTop_toTopOf="parent" />
56
57         <TextView
58             android:id="@+id/btn_default"
59             style="@style/Base.TextAppearance.AppCompat.Button"
60             android:layout_width="wrap_content"
61             android:layout_height="wrap_content"
62             android:text="@string/default_color_btn"
63             app:layout_constraintBottom_toBottomOf="parent"
64             app:layout_constraintEnd_toStartOf="@id/btn_ok"
65             app:layout_constraintStart_toEndOf="@id/btn_cancel"
66             app:layout_constraintTop_toTopOf="parent" />
67
68         <TextView
69             android:id="@+id/btn_ok"
70             style="@style/Base.TextAppearance.AppCompat.Button"
71             android:layout_width="wrap_content"
72             android:layout_height="wrap_content"
73             android:text="@string/btn_select_label"
74             app:layout_constraintBottom_toBottomOf="parent"
75             app:layout_constraintEnd_toEndOf="parent"
76             app:layout_constraintStart_toEndOf="@id/btn_default"
77             app:layout_constraintTop_toTopOf="parent" />
78     </androidx.constraintlayout.widget.ConstraintLayout>
79 </androidx.constraintlayout.widget.ConstraintLayout>