aboutsummaryrefslogtreecommitdiff
path: root/about/src/main/res/layout/kau_iitem_library.xml
blob: 3ad4fb45b58d9213004dad4edc09ec837ca95b9e (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
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView 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/lib_item_card"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?android:selectableItemBackground"
    android:clickable="true">

    <android.support.constraint.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingBottom="@dimen/kau_padding_normal"
        android:paddingEnd="@dimen/kau_padding_normal"
        android:paddingStart="@dimen/kau_padding_normal"
        android:paddingTop="@dimen/kau_padding_normal">

        <android.support.constraint.Guideline
            android:id="@+id/lib_g_m_v"
            android:layout_width="1dp"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            app:layout_constraintGuide_percent="0.5" />

        <TextView
            android:id="@+id/lib_item_name"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:gravity="start"
            android:maxLines="1"
            android:textSize="@dimen/textSizeLarge_openSource"
            android:textStyle="normal"
            app:layout_constraintEnd_toStartOf="@id/lib_g_m_v"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:text="Library name" />

        <TextView
            android:id="@+id/lib_item_author"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="2dp"
            android:gravity="end"
            android:maxLines="2"
            android:textSize="@dimen/textSizeSmall_openSource"
            android:textStyle="normal"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@id/lib_g_m_v"
            app:layout_constraintTop_toTopOf="parent"
            tools:text="Author" />

        <android.support.constraint.Barrier
            android:id="@+id/lib_item_top_divider"
            android:layout_width="wrap_content"
            android:layout_height="1px"
            android:layout_marginTop="@dimen/kau_spacing_micro"
            app:barrierDirection="bottom"
            app:constraint_referenced_ids="lib_item_name,lib_item_author"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent" />

        <TextView
            android:id="@+id/lib_item_description"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:maxLines="20"
            android:paddingBottom="@dimen/kau_spacing_normal"
            android:paddingTop="@dimen/kau_spacing_normal"
            android:textSize="@dimen/textSizeSmall_openSource"
            android:textStyle="normal"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/lib_item_top_divider"
            tools:text="Description" />

        <View
            android:id="@+id/lib_item_bottom_divider"
            android:layout_width="match_parent"
            android:layout_height="1px"
            android:layout_marginTop="@dimen/kau_spacing_micro"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/lib_item_description" />

        <TextView
            android:id="@+id/lib_item_version"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginEnd="@dimen/kau_spacing_normal"
            android:layout_marginTop="@dimen/kau_spacing_micro"
            android:layout_weight="1"
            android:gravity="start"
            android:maxLines="1"
            android:textSize="@dimen/textSizeSmall_openSource"
            android:textStyle="normal"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toStartOf="@id/lib_g_m_v"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/lib_item_bottom_divider"
            tools:text="Version" />

        <TextView
            android:id="@+id/lib_item_license"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/kau_spacing_normal"
            android:layout_marginTop="@dimen/kau_spacing_micro"
            android:layout_weight="1"
            android:gravity="end"
            android:maxLines="1"
            android:textSize="@dimen/textSizeSmall_openSource"
            android:textStyle="normal"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@id/lib_g_m_v"
            app:layout_constraintTop_toBottomOf="@id/lib_item_bottom_divider"
            tools:text="License" />

    </android.support.constraint.ConstraintLayout>

</android.support.v7.widget.CardView>