質問編集履歴

1

コードの追加

2016/05/11 10:08

投稿

edoooooo
edoooooo

スコア476

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,133 @@
7
7
 
8
8
 
9
9
  どうぞよろしくお願いします。
10
+
11
+
12
+
13
+ ```xml
14
+
15
+
16
+
17
+ <?xml version="1.0" encoding="utf-8"?>
18
+
19
+ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
20
+
21
+ xmlns:tools="http://schemas.android.com/tools"
22
+
23
+
24
+
25
+ android:layout_width="match_parent"
26
+
27
+ android:layout_height="match_parent"
28
+
29
+ android:paddingLeft="@dimen/activity_horizontal_margin"
30
+
31
+ android:paddingRight="@dimen/activity_horizontal_margin"
32
+
33
+ android:paddingTop="@dimen/activity_vertical_margin"
34
+
35
+ android:paddingBottom="@dimen/activity_vertical_margin"
36
+
37
+
38
+
39
+ tools:context=".ChatActivity">
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+ <EditText
48
+
49
+ android:layout_width="wrap_content"
50
+
51
+ android:layout_height="wrap_content"
52
+
53
+ android:id="@+id/input_message"
54
+
55
+ android:layout_alignParentTop="true"
56
+
57
+ android:layout_alignParentLeft="true"
58
+
59
+ android:layout_alignParentStart="true"
60
+
61
+ android:layout_toLeftOf="@+id/send_message"
62
+
63
+ android:layout_toStartOf="@+id/send_message" />
64
+
65
+
66
+
67
+ <Button
68
+
69
+ android:layout_width="wrap_content"
70
+
71
+ android:layout_height="wrap_content"
72
+
73
+ android:text="SEND"
74
+
75
+ android:id="@+id/send_message"
76
+
77
+ android:layout_alignParentTop="true"
78
+
79
+ android:layout_alignParentRight="true"
80
+
81
+ android:layout_alignParentEnd="true" />
82
+
83
+
84
+
85
+ <LinearLayout
86
+
87
+ android:orientation="vertical"
88
+
89
+ android:layout_width="fill_parent"
90
+
91
+ android:layout_height="fill_parent"
92
+
93
+ android:layout_below="@+id/input_message"
94
+
95
+ android:layout_alignParentLeft="true"
96
+
97
+ android:layout_alignParentStart="true"
98
+
99
+ android:id="@+id/message_log">
100
+
101
+
102
+
103
+ <TextView
104
+
105
+ android:layout_width="wrap_content"
106
+
107
+ android:layout_height="wrap_content"
108
+
109
+ android:text="こんにちは"
110
+
111
+ android:id="@+id/cpu_message"
112
+
113
+ android:layout_gravity="start"/>
114
+
115
+
116
+
117
+ <TextView
118
+
119
+ android:layout_width="wrap_content"
120
+
121
+ android:layout_height="wrap_content"
122
+
123
+ android:text=""
124
+
125
+ android:id="@+id/user_message"
126
+
127
+ android:layout_gravity="end" />
128
+
129
+ </LinearLayout>
130
+
131
+
132
+
133
+ </RelativeLayout>
134
+
135
+
136
+
137
+
138
+
139
+ ```