Welcome to mirror list, hosted at ThFree Co, Russian Federation.

view_card_due_date.xml « layout « res « main « src « app - github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 77398f5b13e2cf9cbe426f7c860d9413002b1f4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?xml version="1.0" encoding="utf-8"?>
<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="wrap_content">

    <ImageView
        android:id="@+id/doneCheck"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/spacer_1qx"
        android:layout_marginEnd="0dp"
        android:layout_marginBottom="@dimen/spacer_1hx"
        android:contentDescription="@null"
        android:padding="@dimen/spacer_11qx"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:srcCompat="@drawable/ic_check_white_24dp"
        app:tint="?attr/colorOnSurface"
        tools:visibility="gone" />

    <TextView
        android:id="@+id/doneDate"
        style="?attr/textAppearanceBody1"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="@id/doneCheck"
        app:layout_constraintEnd_toStartOf="@id/clearDone"
        app:layout_constraintStart_toEndOf="@id/doneCheck"
        app:layout_constraintTop_toTopOf="@id/doneCheck"
        tools:text="@tools:sample/date/ddmmyy"
        tools:visibility="gone" />

    <TextView
        android:id="@+id/done_due_date"
        style="?attr/textAppearanceBody1"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/spacer_1x"
        app:layout_constraintEnd_toStartOf="@id/clearDone"
        app:layout_constraintStart_toEndOf="@id/doneCheck"
        app:layout_constraintTop_toBottomOf="@id/doneDate"
        tools:text="@tools:sample/date/ddmmyy"
        tools:visibility="gone" />

    <ImageView
        android:id="@+id/clearDone"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginVertical="@dimen/spacer_1hx"
        android:layout_marginStart="@dimen/spacer_1x"
        android:layout_marginEnd="0dp"
        android:contentDescription="@string/label_clear_done"
        android:padding="@dimen/spacer_11qx"
        app:layout_constraintBottom_toBottomOf="@id/doneDate"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="@id/doneDate"
        app:srcCompat="@drawable/ic_close_circle_grey600"
        tools:visibility="gone" />

    <com.google.android.material.textfield.TextInputLayout
        android:id="@+id/dueDateDateWrapper"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginEnd="@dimen/spacer_2x"
        android:hint="@string/hint_due_date_date"
        android:labelFor="@id/dueDateDate"
        app:layout_constraintBottom_toTopOf="@id/markAsDone"
        app:layout_constraintEnd_toStartOf="@id/dueDateTimeWrapper"
        app:layout_constraintHorizontal_weight="2"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/done_due_date"
        app:startIconDrawable="@drawable/calendar_blank_grey600_24dp">

        <EditText
            android:id="@+id/dueDateDate"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:enabled="true"
            android:focusable="false"
            android:importantForAutofill="no"
            android:inputType="date"
            android:maxLines="1"
            tools:text="01/07/2020" />
    </com.google.android.material.textfield.TextInputLayout>

    <com.google.android.material.textfield.TextInputLayout
        android:id="@+id/dueDateTimeWrapper"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/spacer_1hx"
        android:hint="@string/hint_due_date_time"
        android:labelFor="@id/dueDateTime"
        app:layout_constraintBottom_toBottomOf="@id/dueDateDateWrapper"
        app:layout_constraintEnd_toStartOf="@id/clearDueDate"
        app:layout_constraintHorizontal_weight="1"
        app:layout_constraintStart_toEndOf="@id/dueDateDateWrapper"
        app:layout_constraintTop_toTopOf="@id/dueDateDateWrapper">

        <EditText
            android:id="@+id/dueDateTime"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:enabled="true"
            android:focusable="false"
            android:importantForAutofill="no"
            android:inputType="datetime"
            android:maxLines="1"
            android:minLines="0"
            android:textAlignment="center"
            tools:text="11:45" />
    </com.google.android.material.textfield.TextInputLayout>

    <ImageView
        android:id="@+id/clearDueDate"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginVertical="@dimen/spacer_1hx"
        android:layout_marginStart="@dimen/spacer_1x"
        android:layout_marginEnd="0dp"
        android:contentDescription="@string/label_clear_due_date"
        android:padding="@dimen/spacer_11qx"
        android:translationY="@dimen/spacer_1hx"
        app:layout_constraintBottom_toBottomOf="@id/dueDateTimeWrapper"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/dueDateTimeWrapper"
        app:layout_constraintTop_toTopOf="@id/dueDateTimeWrapper"
        app:srcCompat="@drawable/ic_close_circle_grey600" />

    <com.google.android.material.button.MaterialButton
        android:id="@+id/markAsDone"
        style="@style/Widget.Material3.Button"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/spacer_2x"
        android:layout_marginBottom="@dimen/spacer_1hx"
        android:text="@string/simple_completed"
        app:backgroundTint="@color/defaultBrand"
        app:icon="@drawable/ic_check_white_24dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toBottomOf="@id/dueDateDateWrapper" />
</androidx.constraintlayout.widget.ConstraintLayout>