aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/layout/note_block_comment_user.xml
blob: 59b741ee4ff4c5bfc2911ac44a2253b42a7f1c6e (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
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout 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_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingLeft="@dimen/margin_extra_large"
    android:paddingRight="@dimen/margin_extra_large"
    android:paddingTop="@dimen/comment_avatar_margin_top">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:orientation="horizontal">

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

        <LinearLayout
            android:id="@+id/user_name_wrapper"
            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/user_name"
                android:layout_width="match_parent"
                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" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

                <org.wordpress.android.widgets.WPTextView
                    android:id="@+id/user_comment_ago"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:includeFontPadding="false"
                    android:singleLine="true"
                    android:textColor="@color/grey"
                    android:textSize="@dimen/text_sz_large"
                    android:visibility="gone"
                    tools:text="5h"
                    tools:visibility="visible" />

                <org.wordpress.android.widgets.WPTextView
                    android:id="@+id/user_comment_bullet"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="@dimen/margin_small"
                    android:layout_marginRight="@dimen/margin_small"
                    android:includeFontPadding="false"
                    android:text="@string/bullet"
                    android:textColor="@color/grey"
                    android:textSize="@dimen/text_sz_large"
                    android:textStyle="bold" />

                <org.wordpress.android.widgets.WPTextView
                    android:id="@+id/user_comment_site"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="?android:attr/selectableItemBackground"
                    android:clickable="true"
                    android:ellipsize="end"
                    android:includeFontPadding="false"
                    android:singleLine="true"
                    android:textColor="@color/grey"
                    android:textSize="@dimen/text_sz_large"
                    tools:text="example.com" />
            </LinearLayout>

        </LinearLayout>
    </LinearLayout>

    <org.wordpress.android.widgets.WPTextView
        android:id="@+id/user_comment"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/margin_medium"
        android:background="?android:selectableItemBackground"
        android:paddingBottom="@dimen/margin_medium"
        android:textColor="@color/grey_dark"
        android:textSize="@dimen/text_sz_large"
        app:wpFontFamily="merriweather"
        tools:text="Thanks for stopping by my blog! I hope to see you again. " />

    <View
        android:id="@+id/divider_view"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="@drawable/notifications_list_divider_full_width" />
</LinearLayout>