-
Notifications
You must be signed in to change notification settings - Fork 55
/
item_place.xml
75 lines (67 loc) · 3.36 KB
/
item_place.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
<?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:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gdMarginStart"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_begin="@dimen/guide_start_margin"/>
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gdContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_begin="@dimen/guide_content_margin"/>
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gdMarginEnd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_end="@dimen/guide_end_margin"/>
<ImageView
android:id="@+id/ivPlaceType"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:tint="@color/colorPrimary"
app:layout_constraintBottom_toBottomOf="@+id/tvPlaceAddress"
app:layout_constraintStart_toStartOf="@id/gdMarginStart"
app:layout_constraintTop_toTopOf="@+id/tvPlaceName"
app:srcCompat="@drawable/ic_map_marker_black_24dp"
tools:ignore="ContentDescription"/>
<TextView
android:id="@+id/tvPlaceName"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/default_margin"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
app:layout_constraintEnd_toEndOf="@id/gdMarginEnd"
app:layout_constraintStart_toStartOf="@id/gdContent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Eiffel Tower"/>
<TextView
android:id="@+id/tvPlaceAddress"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/default_margin"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textColor="?android:textColorSecondary"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@id/gdMarginEnd"
app:layout_constraintStart_toStartOf="@+id/tvPlaceName"
app:layout_constraintTop_toBottomOf="@+id/tvPlaceName"
tools:text="Champ de Mars, Avenue Anatole France, Paris, France"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>