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

item_discovery_search.xml « layout « res « android - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 83f00011215cabc6e2ea2790aedfa9400f05c52a (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
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
  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_height="wrap_content"
  android:layout_width="wrap_content"
  android:padding="@dimen/margin_quarter"
  android:clipToPadding="false">
  <androidx.cardview.widget.CardView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    <LinearLayout
      android:layout_width="@dimen/gallery_product_width"
      android:layout_height="match_parent"
      android:minHeight="@dimen/discovery_search_item_min_height"
      android:orientation="vertical">
      <LinearLayout
        android:id="@+id/infoLayout"
        android:paddingBottom="@dimen/margin_half_double_plus"
        android:foreground="?clickableBackground"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1">
        <TextView
          android:id="@+id/title"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="@dimen/margin_half_double_plus"
          android:layout_marginLeft="@dimen/margin_half_plus"
          android:layout_marginRight="@dimen/margin_half_plus"
          style="@style/MwmWidget.Discovery.Item.Title"
          android:textAppearance="@style/MwmTextAppearance.Discovery.Item.Title"
          tools:text="Las Ramblas"/>
        <TextView
          android:id="@+id/subtitle"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="@dimen/margin_eighth"
          android:layout_marginLeft="@dimen/margin_half_plus"
          android:layout_marginRight="@dimen/margin_half_plus"
          style="@style/MwmWidget.Discovery.Item.Subtitle"
          android:textAppearance="@style/MwmTextAppearance.Body3"
          tools:text="Attraction"/>

        <LinearLayout
          android:id="@+id/rating_container"
          android:orientation="horizontal"
          android:layout_width="match_parent"
          android:layout_marginTop="@dimen/margin_quarter"
          android:layout_height="wrap_content">
          <com.mapswithme.maps.widget.RatingView
            android:id="@+id/counter_rating_view"
            android:layout_width="wrap_content"
            android:layout_height="@dimen/rating_view_height_small"
            android:layout_marginTop="@dimen/margin_eighth"
            android:layout_marginBottom="@dimen/margin_half"
            android:layout_marginStart="@dimen/margin_half"
            android:layout_marginLeft="@dimen/margin_half"
            android:paddingLeft="@dimen/margin_quarter_plus"
            android:paddingStart="@dimen/margin_quarter_plus"
            android:paddingRight="@dimen/margin_quarter_plus"
            android:paddingEnd="@dimen/margin_quarter_plus"
            android:paddingTop="@dimen/margin_quarter"
            android:paddingBottom="@dimen/margin_quarter"
            android:layout_gravity="center_horizontal|start"
            android:textSize="@dimen/text_size_body_4"
            tools:visibility="visible"/>
          <com.mapswithme.maps.widget.RatingView
            android:id="@+id/popular_rating_view"
            android:layout_width="wrap_content"
            android:layout_height="@dimen/rating_view_height_small"
            android:layout_marginTop="@dimen/margin_eighth"
            android:layout_marginBottom="@dimen/margin_half"
            android:layout_marginStart="@dimen/margin_half"
            android:layout_marginLeft="@dimen/margin_half"
            android:layout_marginRight="@dimen/margin_half"
            android:layout_marginEnd="@dimen/margin_half"
            android:paddingLeft="@dimen/margin_quarter_plus"
            android:paddingStart="@dimen/margin_quarter_plus"
            android:paddingRight="@dimen/margin_quarter_plus"
            android:paddingEnd="@dimen/margin_quarter_plus"
            android:paddingTop="@dimen/margin_quarter"
            android:paddingBottom="@dimen/margin_quarter"
            android:layout_gravity="center_horizontal|start"
            android:textSize="@dimen/text_size_body_4"
            android:text="@string/popular_place"
            app:forceDrawBg="true"
            app:drawSmile="false"
            app:rating="popular"
            tools:visibility="visible"/>
        </LinearLayout>

        <TextView
          android:id="@+id/distance"
          android:layout_marginTop="@dimen/margin_eighth"
          android:layout_marginLeft="@dimen/margin_half_plus"
          android:layout_marginStart="@dimen/margin_half_plus"
          android:layout_marginRight="@dimen/margin_half_plus"
          android:layout_marginEnd="@dimen/margin_half_plus"
          android:textAppearance="@style/MwmTextAppearance.Discovery.Item.Distance"
          android:ellipsize="end"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          tools:text="950 m"/>
      </LinearLayout>
      <include
        layout="@layout/item_discovery_button"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>
    </LinearLayout>
  </androidx.cardview.widget.CardView>
</FrameLayout>