aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/layout/promo_dialog.xml
blob: 66a0e79ad5c0bc51827d041723794a93a0346aa1 (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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="280dp"
    android:layout_height="wrap_content"
    android:layout_gravity="center">

    <ImageView
        android:id="@+id/promo_dialog_image"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        tools:src="@drawable/stats_widget_promo_header" />

    <LinearLayout
        android:id="@+id/promo_dialog_text"
        android:layout_width="280dp"
        android:layout_height="wrap_content"
        android:layout_below="@+id/promo_dialog_image"
        android:orientation="vertical"
        android:padding="24dp">

        <org.wordpress.android.widgets.WPTextView
            android:id="@+id/promo_dialog_title"
            style="@style/StatsModuleTitle"
            android:textSize="@dimen/text_sz_large"
            tools:text="@string/stats_widget_promo_title" />

        <org.wordpress.android.widgets.WPTextView
            android:id="@+id/promo_dialog_description"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:textColor="@color/grey_darken_20"
            android:textSize="@dimen/text_sz_medium"
            tools:text="@string/new_editor_promo_desc" />
    </LinearLayout>

    <LinearLayout
        android:layout_width="280dp"
        android:layout_height="52dp"
        android:layout_below="@+id/promo_dialog_text"
        android:padding="8dp"
        android:gravity="right|end">

        <android.support.v7.widget.AppCompatButton
            android:id="@+id/promo_dialog_cancel_button"
            style="?android:attr/borderlessButtonStyle"
            android:layout_width="wrap_content"
            android:layout_height="36dp"
            android:textAllCaps="true"
            android:textColor="@color/blue_medium"
            tools:text="@string/stats_widget_promo_ok_btn_label"/>
    </LinearLayout>
</RelativeLayout>