aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/layout/note_block_header.xml
blob: f41bc5b7edb48a48b55134f60ad66a872d115a9b (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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/white">

        <LinearLayout
            android:id="@+id/header_root_view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="?android:selectableItemBackground"
            android:clickable="true"
            android:orientation="horizontal"
            android:gravity="center_vertical"
            android:paddingBottom="@dimen/margin_medium"
            android:paddingLeft="@dimen/margin_extra_large"
            android:paddingRight="@dimen/margin_extra_large"
            android:paddingTop="@dimen/comment_avatar_margin_top">

            <org.wordpress.android.widgets.WPNetworkImageView
                android:id="@+id/header_avatar"
                android:layout_width="@dimen/avatar_sz_small"
                android:layout_height="@dimen/avatar_sz_small" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/notifications_adjusted_font_margin"
                android:layout_marginStart="@dimen/notifications_adjusted_font_margin"
                android:orientation="vertical">

                <org.wordpress.android.widgets.WPTextView
                    android:id="@+id/header_user"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:includeFontPadding="false"
                    android:singleLine="true"
                    android:textColor="@color/grey_dark"
                    android:textSize="@dimen/text_sz_large"
                    tools:text="Bob Ross" />

                <org.wordpress.android.widgets.WPTextView
                    android:id="@+id/header_snippet"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:includeFontPadding="false"
                    android:singleLine="true"
                    android:textColor="@color/blue_medium"
                    android:textSize="@dimen/text_sz_large"
                    tools:text="www.bobross.com" />

            </LinearLayout>
        </LinearLayout>
    </LinearLayout>
    <!-- Two footer views, one is used specifically for comments -->
    <LinearLayout
        android:id="@+id/header_footer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <View
            android:layout_width="fill_parent"
            android:layout_height="1dp"
            android:background="@drawable/notifications_list_divider_full_width" />

        <View
            android:layout_width="match_parent"
            android:layout_height="@dimen/margin_medium" />

        <View
            android:layout_width="fill_parent"
            android:layout_height="1dp"
            android:background="@drawable/notifications_list_divider_full_width" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/header_footer_comment"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/white"
        android:orientation="vertical"
        android:visibility="gone">

        <View
            android:layout_width="fill_parent"
            android:layout_height="1dp"
            android:layout_marginLeft="@dimen/margin_extra_large"
            android:layout_marginRight="@dimen/margin_extra_large"
            android:background="@color/grey_lighten_30" />
    </LinearLayout>
</LinearLayout>