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

item_card_compact.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: 7d7b63cddf04757b233460f6fb1ca6157f59d484 (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
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView 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:id="@+id/card"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginHorizontal="@dimen/spacer_2x"
    android:layout_marginVertical="@dimen/spacer_1x">

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

        <FrameLayout
            android:id="@+id/coverImages"
            android:layout_width="50dp"
            android:layout_height="match_parent"
            tools:background="@tools:sample/backgrounds/scenic" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:paddingVertical="@dimen/spacer_1x">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:paddingStart="@dimen/spacer_2x"
                android:paddingEnd="@dimen/spacer_1x">

                <com.google.android.material.textview.MaterialTextView
                    android:id="@+id/card_title"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:paddingVertical="2sp"
                    android:textColor="?attr/colorOnSurface"
                    android:textSize="18sp"
                    tools:ignore="RtlSymmetry"
                    tools:text="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut l" />

                <ImageView
                    android:id="@+id/not_synced_yet"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="8sp"
                    android:contentDescription="@string/not_synced_yet"
                    android:visibility="gone"
                    app:srcCompat="@drawable/ic_sync_18dp"
                    app:tint="?attr/colorPrimary"
                    tools:visibility="visible" />

                <it.niedermann.nextcloud.deck.ui.view.DueDateChip
                    android:id="@+id/card_due_date"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    app:compactMode="true"
                    tools:chipIcon="@drawable/ic_time_24"
                    tools:text="tomorrow" />

                <ImageView
                    android:id="@+id/card_menu"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="?attr/selectableItemBackgroundBorderless"
                    android:contentDescription="@string/label_menu"
                    android:padding="@dimen/spacer_1hx"
                    app:srcCompat="@drawable/ic_menu"
                    app:tint="?attr/colorOnSurface" />
            </LinearLayout>

            <it.niedermann.nextcloud.deck.ui.view.labellayout.CompactLabelLayout
                android:id="@+id/labels"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/spacer_1x"
                android:animateLayoutChanges="true"
                android:paddingHorizontal="@dimen/spacer_2x"
                app:flexWrap="nowrap"
                tools:layout_height="@dimen/avatar_size" />

        </LinearLayout>
    </LinearLayout>
</com.google.android.material.card.MaterialCardView>