質問編集履歴
4
写真の変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -142,5 +142,5 @@
|
|
142
142
|
|
143
143
|
</manifest>
|
144
144
|
|
145
|
-

|
146
146
|
どうぞよろしくお願いします。
|
3
写真の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -142,5 +142,5 @@
|
|
142
142
|
|
143
143
|
</manifest>
|
144
144
|
|
145
|
-
|
145
|
+

|
146
146
|
どうぞよろしくお願いします。
|
2
マニフェストファイルの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -116,4 +116,31 @@
|
|
116
116
|
|
117
117
|
|
118
118
|
```
|
119
|
+
manifestfileです。
|
120
|
+
```xml
|
121
|
+
<?xml version="1.0" encoding="utf-8"?>
|
122
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
123
|
+
package="jp.study.example37" >
|
124
|
+
|
125
|
+
<application
|
126
|
+
android:allowBackup="true"
|
127
|
+
android:icon="@mipmap/ic_launcher"
|
128
|
+
android:label="@string/app_name"
|
129
|
+
android:supportsRtl="true"
|
130
|
+
android:theme="@style/AppTheme" >
|
131
|
+
<activity
|
132
|
+
android:name=".MainActivity"
|
133
|
+
android:label="@string/app_name"
|
134
|
+
android:theme="@style/AppTheme.NoActionBar" >
|
135
|
+
<intent-filter>
|
136
|
+
<action android:name="android.intent.action.MAIN" />
|
137
|
+
|
138
|
+
<category android:name="android.intent.category.LAUNCHER" />
|
139
|
+
</intent-filter>
|
140
|
+
</activity>
|
141
|
+
</application>
|
142
|
+
|
143
|
+
</manifest>
|
144
|
+
|
145
|
+
```
|
119
146
|
どうぞよろしくお願いします。
|
1
コードを追加しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -20,4 +20,100 @@
|
|
20
20
|
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/taichi/Library/Android/sdk/build-tools/23.0.3/aapt'' finished with non-zero exit value 1
|
21
21
|
```
|
22
22
|
エラーはこのようなものです。
|
23
|
+
どうぞよろしくお願いします。
|
24
|
+
|
25
|
+
activity_chat.xml
|
26
|
+
```xml
|
27
|
+
<?xml version="1.0" encoding="utf-8"?>
|
28
|
+
<android.support.design.widget.CoordinatorLayout
|
29
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
30
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
31
|
+
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
|
32
|
+
android:layout_height="match_parent" android:fitsSystemWindows="true"
|
33
|
+
tools:context=".ChatActivity">
|
34
|
+
|
35
|
+
<android.support.design.widget.AppBarLayout android:layout_height="wrap_content"
|
36
|
+
android:layout_width="match_parent" android:theme="@style/AppTheme.AppBarOverlay">
|
37
|
+
|
38
|
+
<android.support.v7.widget.Toolbar android:id="@+id/toolbar"
|
39
|
+
android:layout_width="match_parent" android:layout_height="?attr/actionBarSize"
|
40
|
+
android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme.PopupOverlay" />
|
41
|
+
|
42
|
+
</android.support.design.widget.AppBarLayout>
|
43
|
+
|
44
|
+
<include layout="@layout/content_chat" />
|
45
|
+
|
46
|
+
<android.support.design.widget.FloatingActionButton android:id="@+id/fab"
|
47
|
+
android:layout_width="wrap_content" android:layout_height="wrap_content"
|
48
|
+
android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin"
|
49
|
+
android:src="@android:drawable/ic_dialog_email" />
|
50
|
+
|
51
|
+
</android.support.design.widget.CoordinatorLayout>
|
52
|
+
|
53
|
+
```
|
54
|
+
content_chat.xml
|
55
|
+
```xml
|
56
|
+
|
57
|
+
<?xml version="1.0" encoding="utf-8"?>
|
58
|
+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
59
|
+
xmlns:tools="http://schemas.android.com/tools"
|
60
|
+
|
61
|
+
android:layout_width="match_parent"
|
62
|
+
android:layout_height="match_parent"
|
63
|
+
android:paddingLeft="@dimen/activity_horizontal_margin"
|
64
|
+
android:paddingRight="@dimen/activity_horizontal_margin"
|
65
|
+
android:paddingTop="@dimen/activity_vertical_margin"
|
66
|
+
android:paddingBottom="@dimen/activity_vertical_margin"
|
67
|
+
|
68
|
+
tools:context=".ChatActivity">
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
<EditText
|
73
|
+
android:layout_width="wrap_content"
|
74
|
+
android:layout_height="wrap_content"
|
75
|
+
android:id="@+id/input_message"
|
76
|
+
android:layout_alignParentTop="true"
|
77
|
+
android:layout_alignParentLeft="true"
|
78
|
+
android:layout_alignParentStart="true"
|
79
|
+
android:layout_toLeftOf="@+id/send_message"
|
80
|
+
android:layout_toStartOf="@+id/send_message" />
|
81
|
+
|
82
|
+
<Button
|
83
|
+
android:layout_width="wrap_content"
|
84
|
+
android:layout_height="wrap_content"
|
85
|
+
android:text="SEND"
|
86
|
+
android:id="@+id/send_message"
|
87
|
+
android:layout_alignParentTop="true"
|
88
|
+
android:layout_alignParentRight="true"
|
89
|
+
android:layout_alignParentEnd="true" />
|
90
|
+
|
91
|
+
<LinearLayout
|
92
|
+
android:orientation="vertical"
|
93
|
+
android:layout_width="fill_parent"
|
94
|
+
android:layout_height="fill_parent"
|
95
|
+
android:layout_below="@+id/input_message"
|
96
|
+
android:layout_alignParentLeft="true"
|
97
|
+
android:layout_alignParentStart="true"
|
98
|
+
android:id="@+id/message_log">
|
99
|
+
|
100
|
+
<TextView
|
101
|
+
android:layout_width="wrap_content"
|
102
|
+
android:layout_height="wrap_content"
|
103
|
+
android:text="こんにちは"
|
104
|
+
android:id="@+id/cpu_message"
|
105
|
+
android:layout_gravity="start"/>
|
106
|
+
|
107
|
+
<TextView
|
108
|
+
android:layout_width="wrap_content"
|
109
|
+
android:layout_height="wrap_content"
|
110
|
+
android:text=""
|
111
|
+
android:id="@+id/user_message"
|
112
|
+
android:layout_gravity="end" />
|
113
|
+
</LinearLayout>
|
114
|
+
|
115
|
+
</RelativeLayout>
|
116
|
+
|
117
|
+
|
118
|
+
```
|
23
119
|
どうぞよろしくお願いします。
|