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

widget_single_card.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: 1d134a822246f06798a192fd3fcb226d762c83e4 (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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/widget_card"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/widget_single_card_background"
    android:orientation="vertical"
    android:padding="@dimen/spacer_1x"
    tools:layout_height="200dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <TextView
            android:id="@+id/title"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:textColor="@color/widget_foreground"
            android:textSize="18sp"
            tools:maxLength="40"
            tools:text="@tools:sample/lorem/random" />

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

            <ImageView
                android:id="@+id/card_due_date_image"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:contentDescription="@null"
                tools:src="@drawable/calendar_blank_grey600_24dp" />

            <TextView
                android:id="@+id/card_due_date"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:drawablePadding="@dimen/spacer_1hx"
                android:gravity="center"
                android:padding="@dimen/spacer_1hx"
                android:textColor="@color/widget_foreground"
                tools:text="tomorrow" />
        </LinearLayout>
    </LinearLayout>

    <ListView
        android:id="@+id/description_lv"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        tools:listitem="@layout/widget_single_card_content" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/spacer_1hx"
        android:gravity="bottom">

        <ImageView
            android:id="@+id/card_count_comments_image"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@null"
            android:tint="@color/grey600"
            tools:ignore="UseAppTint"
            tools:src="@drawable/ic_comment_white_24dp" />

        <TextView
            android:id="@+id/card_count_comments"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawablePadding="@dimen/spacer_1hx"
            android:gravity="center_vertical"
            android:padding="@dimen/spacer_1hx"
            android:textColor="@color/widget_foreground"
            tools:text="2" />

        <ImageView
            android:id="@+id/card_count_tasks_image"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@null"
            tools:src="@drawable/ic_check_grey600_24dp" />

        <TextView
            android:id="@+id/card_count_tasks"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:padding="@dimen/spacer_1hx"
            android:textColor="@color/widget_foreground"
            tools:text="1/2" />

        <ImageView
            android:id="@+id/card_count_attachments_image"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@null"
            android:tint="@color/grey600"
            tools:ignore="UseAppTint"
            tools:src="@drawable/ic_attach_file_grey600_24dp" />

        <TextView
            android:id="@+id/card_count_attachments"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:padding="@dimen/spacer_1hx"
            android:textColor="@color/widget_foreground"
            tools:text="3" />
    </LinearLayout>
</LinearLayout>