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

catalog_promo_item_card.xml « layout « res « android - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b4e7f3511dfa8cd178b642683818a79545aa45af (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
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_height="wrap_content"
  android:layout_width="wrap_content"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:padding="@dimen/margin_quarter"
  android:clipToPadding="false">
  <android.support.v7.widget.CardView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    <LinearLayout
      android:foreground="?clickableBackground"
      android:orientation="vertical"
      android:layout_width="@dimen/gallery_product_width"
      android:layout_height="wrap_content"
      android:minHeight="@dimen/discovery_expert_item_min_height">
      <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:orientation="vertical">
        <ImageView
          android:id="@+id/image"
          android:src="@drawable/img_guides_placeholder"
          android:scaleType="centerCrop"
          android:layout_width="@dimen/gallery_product_width"
          android:layout_height="@dimen/placeholder_margin_top_no_image"/>
        <TextView
          android:id="@+id/title"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="@dimen/margin_half_plus"
          android:layout_marginLeft="@dimen/margin_half_plus"
          android:layout_marginRight="@dimen/margin_half_plus"
          style="@style/MwmWidget.Discovery.Item.Title"
          android:maxLines="1"
          android:minLines="1"
          android:textAppearance="@style/MwmTextAppearance.Discovery.Item.Title"
          tools:text="Irina Severintseva"/>
        <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:ellipsize="middle"
          android:textAppearance="@style/MwmTextAppearance.Body3"
          tools:text="★ ★ ★ ★ ★"/>
      </LinearLayout>
      <TextView
        android:id="@+id/button"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textAppearance="@style/MwmTextAppearance.Discovery.Item.Button"
        style="@style/MwmWidget.Discovery.Item.Button"
        android:layout_gravity="bottom"
        android:text="@string/details"/>
    </LinearLayout>
    <TextView
      android:id="@+id/label"
      android:elevation="@dimen/default_elevation"
      android:layout_gravity="top"
      android:paddingTop="@dimen/margin_eighth"
      android:paddingBottom="@dimen/margin_eighth"
      android:paddingLeft="@dimen/margin_half_plus"
      android:paddingStart="@dimen/margin_half_plus"
      android:paddingRight="@dimen/margin_half_plus"
      android:paddingEnd="@dimen/margin_half_plus"
      android:layout_marginTop="@dimen/pro_label_margin"
      android:textColor="@android:color/white"
      android:textAppearance="?android:attr/textAppearanceSmall"
      app:fontFamily="@string/robotoMedium"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      tools:background="@color/base_accent_night"
      tools:text="PRO"
      tools:visibility="visible"
      tools:targetApi="lollipop"/>
  </android.support.v7.widget.CardView>
</FrameLayout>