質問編集履歴

2

失礼しました。再度変更しました。

2016/08/28 14:11

投稿

kimura
kimura

スコア59

test CHANGED
File without changes
test CHANGED
@@ -110,136 +110,142 @@
110
110
 
111
111
 
112
112
 
113
+ コード
114
+
115
+ ``````
116
+
117
+
118
+
113
119
  申し訳ありません。
114
120
 
115
121
  activity_main.xmlを追加させていただきました。
116
122
 
123
+
124
+
125
+ ```<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
126
+
127
+ xmlns:tools="http://schemas.android.com/tools"
128
+
129
+ android:layout_width="match_parent"
130
+
131
+ android:layout_height="match_parent"
132
+
133
+ android:paddingLeft="@dimen/activity_horizontal_margin"
134
+
135
+ android:paddingRight="@dimen/activity_horizontal_margin"
136
+
137
+ android:paddingTop="@dimen/activity_vertical_margin"
138
+
139
+ android:paddingBottom="@dimen/activity_vertical_margin"
140
+
141
+ tools:context=".MainActivity"
142
+
143
+ android:orientation="vertical">
144
+
145
+
146
+
147
+ <LinearLayout
148
+
149
+ android:layout_width="match_parent"
150
+
151
+ android:layout_height="wrap_content"
152
+
153
+ android:orientation="horizontal">
154
+
155
+
156
+
157
+ <TextView
158
+
159
+ android:layout_width="wrap_content"
160
+
161
+ android:layout_height="wrap_content"
162
+
163
+ android:textAppearance="?android:attr/textAppearanceLarge"
164
+
165
+ android:text="あなたの身長:"
166
+
167
+ android:id="@+id/textView1"/>
168
+
169
+
170
+
171
+ <EditText
172
+
173
+ android:layout_width="0dp"
174
+
175
+ android:layout_height="wrap_content"
176
+
177
+ android:layout_weight="1"
178
+
179
+ android:gravity="right"
180
+
181
+ android:id="@+id/editText1"/>
182
+
183
+
184
+
185
+ <TextView
186
+
187
+ android:layout_width="wrap_content"
188
+
189
+ android:layout_height="wrap_content"
190
+
191
+ android:textAppearance="?android:attr/textAppearanceLarge"
192
+
193
+ android:text="cm"
194
+
195
+ android:id="@+id/textView2"/>
196
+
197
+ </LinearLayout>
198
+
199
+
200
+
201
+
202
+
203
+ <LinearLayout
204
+
205
+ android:layout_width="match_parent"
206
+
207
+ android:layout_height="wrap_content"
208
+
209
+ android:orientation="vertical">
210
+
211
+
212
+
213
+ <Button
214
+
215
+ android:layout_width="wrap_content"
216
+
217
+ android:layout_height="wrap_content"
218
+
219
+ android:layout_gravity="center"
220
+
221
+ android:onClick="Click"
222
+
223
+ android:text="計算"
224
+
225
+ android:id="@+id/button1"/>
226
+
227
+
228
+
229
+ <TextView
230
+
231
+ android:layout_width="wrap_content"
232
+
233
+ android:layout_height="wrap_content"
234
+
235
+ android:layout_gravity="center"
236
+
237
+ android:textAppearance="?android:attr/textAppearanceLarge"
238
+
239
+ android:text="標準体重を計算します"
240
+
241
+ android:id="@+id/textView3"/>
242
+
243
+ </LinearLayout>
244
+
245
+ </LinearLayout>
246
+
247
+
248
+
117
249
  コード
118
250
 
119
- ``````<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
120
-
121
- xmlns:tools="http://schemas.android.com/tools"
122
-
123
- android:layout_width="match_parent"
124
-
125
- android:layout_height="match_parent"
126
-
127
- android:paddingLeft="@dimen/activity_horizontal_margin"
128
-
129
- android:paddingRight="@dimen/activity_horizontal_margin"
130
-
131
- android:paddingTop="@dimen/activity_vertical_margin"
132
-
133
- android:paddingBottom="@dimen/activity_vertical_margin"
134
-
135
- tools:context=".MainActivity"
136
-
137
- android:orientation="vertical">
138
-
139
-
140
-
141
- <LinearLayout
142
-
143
- android:layout_width="match_parent"
144
-
145
- android:layout_height="wrap_content"
146
-
147
- android:orientation="horizontal">
148
-
149
-
150
-
151
- <TextView
152
-
153
- android:layout_width="wrap_content"
154
-
155
- android:layout_height="wrap_content"
156
-
157
- android:textAppearance="?android:attr/textAppearanceLarge"
158
-
159
- android:text="あなたの身長:"
160
-
161
- android:id="@+id/textView1"/>
162
-
163
-
164
-
165
- <EditText
166
-
167
- android:layout_width="0dp"
168
-
169
- android:layout_height="wrap_content"
170
-
171
- android:layout_weight="1"
172
-
173
- android:gravity="right"
174
-
175
- android:id="@+id/editText1"/>
176
-
177
-
178
-
179
- <TextView
180
-
181
- android:layout_width="wrap_content"
182
-
183
- android:layout_height="wrap_content"
184
-
185
- android:textAppearance="?android:attr/textAppearanceLarge"
186
-
187
- android:text="cm"
188
-
189
- android:id="@+id/textView2"/>
190
-
191
- </LinearLayout>
192
-
193
-
194
-
195
-
196
-
197
- <LinearLayout
198
-
199
- android:layout_width="match_parent"
200
-
201
- android:layout_height="wrap_content"
202
-
203
- android:orientation="vertical">
204
-
205
-
206
-
207
- <Button
208
-
209
- android:layout_width="wrap_content"
210
-
211
- android:layout_height="wrap_content"
212
-
213
- android:layout_gravity="center"
214
-
215
- android:onClick="Click"
216
-
217
- android:text="計算"
218
-
219
- android:id="@+id/button1"/>
220
-
221
-
222
-
223
- <TextView
224
-
225
- android:layout_width="wrap_content"
226
-
227
- android:layout_height="wrap_content"
228
-
229
- android:layout_gravity="center"
230
-
231
- android:textAppearance="?android:attr/textAppearanceLarge"
232
-
233
- android:text="標準体重を計算します"
234
-
235
- android:id="@+id/textView3"/>
236
-
237
- </LinearLayout>
238
-
239
- </LinearLayout>
240
-
241
-
242
-
243
- コード
244
-
245
251
  ```

1

activity_main\.xmlを追加

2016/08/28 14:11

投稿

kimura
kimura

スコア59

test CHANGED
File without changes
test CHANGED
@@ -108,6 +108,138 @@
108
108
 
109
109
 
110
110
 
111
+
112
+
113
+ 申し訳ありません。
114
+
115
+ activity_main.xmlを追加させていただきました。
116
+
111
117
  コード
112
118
 
119
+ ``````<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
120
+
121
+ xmlns:tools="http://schemas.android.com/tools"
122
+
123
+ android:layout_width="match_parent"
124
+
125
+ android:layout_height="match_parent"
126
+
127
+ android:paddingLeft="@dimen/activity_horizontal_margin"
128
+
129
+ android:paddingRight="@dimen/activity_horizontal_margin"
130
+
131
+ android:paddingTop="@dimen/activity_vertical_margin"
132
+
133
+ android:paddingBottom="@dimen/activity_vertical_margin"
134
+
135
+ tools:context=".MainActivity"
136
+
137
+ android:orientation="vertical">
138
+
139
+
140
+
141
+ <LinearLayout
142
+
143
+ android:layout_width="match_parent"
144
+
145
+ android:layout_height="wrap_content"
146
+
147
+ android:orientation="horizontal">
148
+
149
+
150
+
151
+ <TextView
152
+
153
+ android:layout_width="wrap_content"
154
+
155
+ android:layout_height="wrap_content"
156
+
157
+ android:textAppearance="?android:attr/textAppearanceLarge"
158
+
159
+ android:text="あなたの身長:"
160
+
161
+ android:id="@+id/textView1"/>
162
+
163
+
164
+
165
+ <EditText
166
+
167
+ android:layout_width="0dp"
168
+
169
+ android:layout_height="wrap_content"
170
+
171
+ android:layout_weight="1"
172
+
173
+ android:gravity="right"
174
+
175
+ android:id="@+id/editText1"/>
176
+
177
+
178
+
179
+ <TextView
180
+
181
+ android:layout_width="wrap_content"
182
+
183
+ android:layout_height="wrap_content"
184
+
185
+ android:textAppearance="?android:attr/textAppearanceLarge"
186
+
187
+ android:text="cm"
188
+
189
+ android:id="@+id/textView2"/>
190
+
191
+ </LinearLayout>
192
+
193
+
194
+
195
+
196
+
197
+ <LinearLayout
198
+
199
+ android:layout_width="match_parent"
200
+
201
+ android:layout_height="wrap_content"
202
+
203
+ android:orientation="vertical">
204
+
205
+
206
+
207
+ <Button
208
+
209
+ android:layout_width="wrap_content"
210
+
211
+ android:layout_height="wrap_content"
212
+
213
+ android:layout_gravity="center"
214
+
215
+ android:onClick="Click"
216
+
217
+ android:text="計算"
218
+
219
+ android:id="@+id/button1"/>
220
+
221
+
222
+
223
+ <TextView
224
+
225
+ android:layout_width="wrap_content"
226
+
227
+ android:layout_height="wrap_content"
228
+
229
+ android:layout_gravity="center"
230
+
231
+ android:textAppearance="?android:attr/textAppearanceLarge"
232
+
233
+ android:text="標準体重を計算します"
234
+
235
+ android:id="@+id/textView3"/>
236
+
237
+ </LinearLayout>
238
+
239
+ </LinearLayout>
240
+
241
+
242
+
243
+ コード
244
+
113
245
  ```