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

<!--
    comment box at bottom of comment detail and reader comment list
-->

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/white"
    android:visibility="gone"
    tools:visibility="visible">

    <View
        android:id="@+id/divider_comment"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="@color/grey_lighten_20" />

    <LinearLayout
        android:id="@+id/reply_box"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_marginLeft="@dimen/content_margin"
            app:srcCompat="@drawable/ic_action_reply" />

        <org.wordpress.android.widgets.SuggestionAutoCompleteText
            android:id="@+id/edit_comment"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_weight="1"
            android:background="@color/transparent"
            android:hint="@string/reader_hint_comment_on_post"
            android:imeOptions="actionSend"
            android:focusableInTouchMode="false"
            android:inputType="text|textCapSentences|textMultiLine"
            android:maxLines="4"
            android:minLines="2"
            android:paddingBottom="@dimen/margin_extra_small"
            android:paddingLeft="@dimen/margin_small"
            android:paddingTop="@dimen/margin_extra_small"
            android:textColorHint="@color/grey_lighten_10"
            android:textSize="@dimen/text_sz_large" />

        <org.wordpress.android.widgets.WPTextView
            android:id="@+id/btn_submit_reply"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_marginRight="@dimen/content_margin"
            android:background="?android:selectableItemBackground"
            android:padding="@dimen/margin_medium"
            android:text="@string/reader_label_submit_comment"
            android:textColor="@color/grey_darken_10"
            android:textSize="@dimen/text_sz_medium" />
    </LinearLayout>

    <ProgressBar
        android:id="@+id/progress_submit_comment"
        android:layout_width="32dp"
        android:layout_height="32dp"
        android:layout_alignParentRight="true"
        android:layout_centerVertical="true"
        android:layout_marginRight="@dimen/margin_medium"
        android:visibility="gone" />

</RelativeLayout>