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

<!--
    included by ReaderPostDetailFragment
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:wp="http://schemas.android.com/apk/res-auto"
    android:id="@+id/layout_post_detail_header"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?android:selectableItemBackground">

    <org.wordpress.android.widgets.WPNetworkImageView
        android:id="@+id/image_blavatar"
        style="@style/ReaderImageView.Avatar"
        android:layout_centerVertical="true"
        android:layout_marginRight="@dimen/margin_large"
        tools:src="@drawable/blavatar_placeholder" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_toLeftOf="@+id/follow_button"
        android:layout_toRightOf="@+id/image_blavatar"
        android:orientation="vertical">

        <org.wordpress.android.widgets.WPTextView
            android:id="@+id/text_blog_name"
            style="@style/ReaderTextView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:gravity="center_vertical"
            android:maxLines="1"
            android:textColor="@color/grey_dark"
            android:textSize="@dimen/text_sz_medium"
            tools:text="text_blog_name" />

        <org.wordpress.android.widgets.WPTextView
            android:id="@+id/text_domain"
            style="@style/ReaderTextView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/text_blog_name"
            android:layout_alignRight="@+id/text_blog_name"
            android:layout_below="@+id/text_blog_name"
            android:textColor="@color/grey"
            android:textSize="@dimen/text_sz_small"
            tools:text="text_domain" />
    </LinearLayout>

    <org.wordpress.android.ui.reader.views.ReaderFollowButton
        android:id="@+id/follow_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_centerVertical="true"
        android:layout_marginLeft="@dimen/margin_medium" />

</RelativeLayout>