aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/layout/note_block_user_header.xml
blob: 51aff387f789b20d9aec068529e2ef0a2c379a33 (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
<?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">

    <RelativeLayout
        android:id="@+id/header_root_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/notifications_header_selector"
        android:clickable="true"
        android:orientation="horizontal"
        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"
            android:layout_marginRight="@dimen/notifications_adjusted_font_margin"
            android:layout_marginTop="@dimen/comment_avatar_margin_top" />

        <org.wordpress.android.widgets.WPTextView
            android:id="@+id/header_user"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignTop="@id/header_avatar"
            android:layout_marginTop="@dimen/comment_user_margin_adjustment"
            android:layout_toRightOf="@id/header_avatar"
            android:ellipsize="end"
            android:includeFontPadding="false"
            android:singleLine="true"
            android:textColor="@color/calypso_blue_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:layout_alignTop="@id/header_avatar"
            android:layout_marginTop="@dimen/comment_snippet_margin_adjustment"
            android:layout_toRightOf="@id/header_avatar"
            android:ellipsize="end"
            android:includeFontPadding="false"
            android:singleLine="true"
            android:textColor="@color/blue_new_kid"
            android:textSize="@dimen/text_sz_large"
            tools:text="www.bobross.com" />

    </RelativeLayout>
    <!-- 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/calypso_blue_light" />
    </LinearLayout>
</LinearLayout>