-
Notifications
You must be signed in to change notification settings - Fork 5
/
activity_comment_feed.xml
73 lines (66 loc) · 2.75 KB
/
activity_comment_feed.xml
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
<?xml version="1.0" encoding="utf-8"?>
<!-- layout for comment feed -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/comment_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff"
android:orientation="vertical">
<!-- TODO: replace "temp title" with a landmark name -->
<android.support.v7.widget.Toolbar
android:id="@+id/my_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/white"
app:titleTextColor="@color/colorPrimaryDark"
app:title="temp title"
android:elevation="4dp"
android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
<!-- recylcer view -->
<android.support.v7.widget.RecyclerView
android:id="@+id/comment_recycler"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_above="@+id/llSend"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:transcriptMode="alwaysScroll"
app:stackFromEnd="true" />
<RelativeLayout
android:id="@+id/llSend"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="#ffffff"
android:paddingBottom="10dp"
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:paddingTop="5dp">
<!-- new comment edit text -->
<EditText
android:id="@+id/comment_input_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/send_button"
android:layout_marginLeft="8dp"
android:layout_marginRight="16dp"
android:layout_toLeftOf="@+id/send_button"
android:gravity="top"
android:hint="send a new message"
android:inputType="textShortMessage" />
<!-- send button -->
<Button
android:id="@+id/send_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/activity_horizontal_margin"
android:background="@color/colorPrimaryDark"
android:text="send"
android:textColor="@color/white"
android:textSize="18sp" />
</RelativeLayout>
</RelativeLayout>