Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit f4dd247

Browse files
kunall17niftynei
authored andcommitted
Implemented layout's to contain the chatBox.
Changed to LinearLayouts
1 parent 4cfc4d3 commit f4dd247

File tree

7 files changed

+75
-7
lines changed

7 files changed

+75
-7
lines changed
250 Bytes
Loading
205 Bytes
Loading
333 Bytes
Loading
412 Bytes
Loading
543 Bytes
Loading

app/src/main/res/layout/main.xml

Lines changed: 73 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,81 @@
22
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:id="@+id/drawer_layout"
44
android:layout_width="match_parent"
5-
android:layout_height="match_parent" >
5+
android:layout_height="match_parent">
66

77
<!-- The main content view -->
8-
9-
<FrameLayout
10-
xmlns:android="http://schemas.android.com/apk/res/android"
11-
android:id="@+id/list_fragment_container"
8+
<LinearLayout
129
android:layout_width="match_parent"
13-
android:layout_height="match_parent" />
10+
android:layout_height="match_parent"
11+
android:orientation="vertical">
12+
13+
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
14+
android:id="@+id/list_fragment_container"
15+
android:layout_width="match_parent"
16+
android:layout_height="0dp"
17+
android:layout_weight="1" />
18+
<LinearLayout
19+
android:layout_width="match_parent"
20+
android:layout_height="wrap_content">
21+
22+
<AutoCompleteTextView
23+
android:id="@+id/stream_actv"
24+
android:layout_width="wrap_content"
25+
android:layout_height="wrap_content"
26+
android:dropDownWidth="fill_parent"
27+
android:hint="@string/stream_txt"
28+
android:visibility="visible" />
29+
30+
31+
<TextView
32+
android:id="@+id/textView"
33+
android:layout_width="wrap_content"
34+
android:layout_height="wrap_content"
35+
android:text="@string/arrow"
36+
android:textAppearance="?android:attr/textAppearanceLarge"
37+
android:visibility="visible" />
38+
39+
<AutoCompleteTextView
40+
android:id="@+id/topic_actv"
41+
android:layout_weight="1.22"
42+
android:layout_width="0dp"
43+
android:layout_height="wrap_content"
44+
android:dropDownWidth="fill_parent"
45+
android:hint="@string/stream_txt"
46+
android:maxLines="1" />
47+
48+
<ImageView
49+
android:id="@+id/togglePrivateStream_btn"
50+
android:layout_width="wrap_content"
51+
android:layout_height="wrap_content"
52+
android:padding="3dp"
53+
android:src="@drawable/ic_action_person" />
54+
</LinearLayout>
55+
56+
<LinearLayout
57+
android:layout_width="match_parent"
58+
android:orientation="horizontal"
59+
android:layout_height="wrap_content">
60+
61+
<EditText
62+
android:id="@+id/message_et"
63+
android:layout_width="0dp"
64+
android:layout_height="wrap_content"
65+
android:layout_weight="1"
66+
android:hint="@string/tap_message"
67+
android:inputType="textCapSentences|textMultiLine"
68+
android:maxLines="4" />
69+
70+
<ImageView
71+
android:id="@+id/send_btn"
72+
android:layout_width="wrap_content"
73+
android:layout_height="wrap_content"
74+
android:padding="4dp"
75+
android:src="@drawable/ic_send_black_24dp"
76+
android:tint="#757575" />
77+
78+
</LinearLayout>
79+
</LinearLayout>
1480

1581
<!-- The navigation drawer -->
1682

@@ -30,4 +96,4 @@
3096
android:background="#FFF"
3197
android:choiceMode="singleChoice" />
3298

33-
</android.support.v4.widget.DrawerLayout>
99+
</android.support.v4.widget.DrawerLayout>

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@
5151
<string name="server_domain_required">Server domain required</string>
5252
<string name="invalid_domain">Invalid domain</string>
5353

54+
55+
<string name="tap_message">Tap on a message to send reply</string>
5456
</resources>

0 commit comments

Comments
 (0)