-
Notifications
You must be signed in to change notification settings - Fork 2
/
default_sport_event_item.xml
110 lines (98 loc) · 4.7 KB
/
default_sport_event_item.xml
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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/default_event_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<android.support.constraint.ConstraintLayout
android:id="@+id/user_fav_sport_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/user_fav_sport_label_text"
android:fontFamily="@font/alfaslab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginStart="16dp"
android:textAlignment="center"
android:textColor="@color/colorPrimary"
android:textSize="22sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Il tuo sport" />
</android.support.constraint.ConstraintLayout>
<android.support.v7.widget.CardView
xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/default_event_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
card_view:cardCornerRadius="2dp"
card_view:cardElevation="4dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp" >
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/sport_icon_event"
android:layout_width="40dp"
android:layout_height="40dp"
android:src="@drawable/basketball96"
android:tint="@color/colorAccent"
android:layout_marginLeft="16dp"
card_view:layout_constraintLeft_toLeftOf="parent"
card_view:layout_constraintTop_toTopOf="@+id/date_of_event"
android:layout_marginTop="8dp"
card_view:layout_constraintBottom_toBottomOf="@+id/place_of_event"
android:layout_marginBottom="8dp" />
<TextView
android:id="@+id/date_of_event"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="72dp"
android:layout_marginTop="8dp"
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"
card_view:layout_constraintLeft_toLeftOf="parent"
tools:text="Domani"
card_view:layout_constraintVertical_bias="0.19999999"
android:layout_marginBottom="8dp" />
<TextView
android:id="@+id/ore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ore"
card_view:layout_constraintLeft_toRightOf="@+id/date_of_event"
android:layout_marginLeft="8dp"
card_view:layout_constraintBaseline_toBaselineOf="@+id/date_of_event" />
<TextView
android:id="@+id/hour_of_event"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="4dp"
android:textColor="@color/colorAccent"
android:textStyle="bold"
card_view:layout_constraintLeft_toRightOf="@+id/ore"
tools:text="18:00"
card_view:layout_constraintBaseline_toBaselineOf="@+id/ore" />
<TextView
android:id="@+id/place_of_event"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="72dp"
android:layout_marginTop="8dp"
tools:text="Parco le albere"
android:textSize="14sp"
card_view:layout_constraintLeft_toLeftOf="parent"
card_view:layout_constraintTop_toBottomOf="@+id/date_of_event" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
</LinearLayout>