質問編集履歴

2

情報の追加

2016/08/31 13:36

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -361,3 +361,39 @@
361
361
  ```
362
362
 
363
363
  と記載しました。
364
+
365
+
366
+
367
+ ```Java
368
+
369
+ <TextView
370
+
371
+ android:id="@+id/edittingprofile1"
372
+
373
+ android:layout_width="match_parent"
374
+
375
+ android:layout_height="40dp"
376
+
377
+ android:gravity="center"
378
+
379
+ android:text="プロフィール編集"
380
+
381
+ android:textColor="#FFFFFF"
382
+
383
+ android:background="#F2B98F"
384
+
385
+ android:layout_marginRight="0dp"
386
+
387
+ android:layout_alignParentEnd="false"
388
+
389
+ android:layout_alignParentLeft="true"
390
+
391
+ android:layout_alignParentStart="true"
392
+
393
+ android:layout_alignParentTop="true" />
394
+
395
+
396
+
397
+ ```
398
+
399
+ がtopに持ってきたいものです。

1

情報の追加

2016/08/31 13:36

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -5,3 +5,359 @@
5
5
  でもいまは画面とTextViewの間に少し余白ができています。
6
6
 
7
7
  どうしたらぴったり合わせられますか?
8
+
9
+
10
+
11
+ xmlには
12
+
13
+ ```Java
14
+
15
+ <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
16
+
17
+ android:layout_width="match_parent"
18
+
19
+ android:layout_height="match_parent" >
20
+
21
+
22
+
23
+
24
+
25
+ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
26
+
27
+ android:layout_width="match_parent"
28
+
29
+ android:layout_height="match_parent"
30
+
31
+ android:orientation="vertical"
32
+
33
+ android:weightSum="1"
34
+
35
+ android:paddingTop="10px"
36
+
37
+ >
38
+
39
+
40
+
41
+
42
+
43
+ <ImageButton
44
+
45
+ android:layout_width="80dp"
46
+
47
+ android:layout_height="80dp"
48
+
49
+ android:id="@+id/imageButton2"
50
+
51
+ android:background="@null"
52
+
53
+ android:src="@drawable/no_user"
54
+
55
+ android:scaleType="fitXY"
56
+
57
+ android:layout_below="@+id/edittingprofile1"
58
+
59
+ android:layout_centerHorizontal="true"
60
+
61
+ android:layout_marginTop="30dp" />
62
+
63
+
64
+
65
+ <TextView
66
+
67
+ android:id="@+id/edittingprofile1"
68
+
69
+ android:layout_width="match_parent"
70
+
71
+ android:layout_height="40dp"
72
+
73
+ android:gravity="center"
74
+
75
+ android:text="プロフィール編集"
76
+
77
+ android:textColor="#FFFFFF"
78
+
79
+ android:background="#F2B98F"
80
+
81
+ android:layout_marginRight="0dp"
82
+
83
+ android:layout_alignParentEnd="false"
84
+
85
+ android:layout_alignParentLeft="true"
86
+
87
+ android:layout_alignParentStart="true"
88
+
89
+ android:layout_alignParentTop="true" />
90
+
91
+
92
+
93
+
94
+
95
+ <EditText
96
+
97
+ android:layout_width="wrap_content"
98
+
99
+ android:layout_height="30dp"
100
+
101
+ android:ems="10"
102
+
103
+ android:id="@+id/editingemail"
104
+
105
+ android:layout_gravity="center|top"
106
+
107
+ android:background="@drawable/edit_text_style"
108
+
109
+ android:hint="メールアドレス"
110
+
111
+ android:textColorHint="#D5D5D5"
112
+
113
+ android:textSize="15sp"
114
+
115
+ android:padding="5dp"
116
+
117
+ android:textCursorDrawable="@drawable/cursor_style"
118
+
119
+ android:layout_marginTop="30dp"
120
+
121
+ android:layout_below="@+id/imageButton2"
122
+
123
+ android:layout_alignParentLeft="true"
124
+
125
+ android:layout_alignParentStart="true"
126
+
127
+ android:layout_alignParentRight="true"
128
+
129
+ android:layout_alignParentEnd="true" />
130
+
131
+
132
+
133
+ <EditText
134
+
135
+ android:layout_width="wrap_content"
136
+
137
+ android:layout_height="30dp"
138
+
139
+ android:ems="10"
140
+
141
+ android:id="@+id/editingusername"
142
+
143
+ android:layout_gravity="center_horizontal|top"
144
+
145
+ android:background="@drawable/edit_text_style"
146
+
147
+ android:hint="ユーザーネーム"
148
+
149
+ android:textColorHint="#D5D5D5"
150
+
151
+ android:textSize="15sp"
152
+
153
+ android:layout_marginTop="10dp"
154
+
155
+ android:padding="5dp"
156
+
157
+ android:layout_below="@+id/editingemail"
158
+
159
+ android:textCursorDrawable="@drawable/cursor_style"
160
+
161
+ android:layout_alignParentLeft="true"
162
+
163
+ android:layout_alignParentStart="true"
164
+
165
+ android:layout_alignParentRight="true"
166
+
167
+ android:layout_alignParentEnd="true" />
168
+
169
+
170
+
171
+ <EditText
172
+
173
+ android:layout_width="wrap_content"
174
+
175
+ android:layout_height="90dp"
176
+
177
+ android:ems="10"
178
+
179
+ android:id="@+id/editingintro"
180
+
181
+ android:layout_gravity="center_horizontal|top"
182
+
183
+ android:background="@drawable/edit_text_style"
184
+
185
+ android:hint="自己紹介"
186
+
187
+ android:textColorHint="#D5D5D5"
188
+
189
+ android:textSize="15sp"
190
+
191
+ android:layout_marginTop="10dp"
192
+
193
+ android:padding="5dp"
194
+
195
+ android:layout_below="@+id/editingusername"
196
+
197
+ android:textCursorDrawable="@drawable/cursor_style"
198
+
199
+ android:layout_alignParentLeft="true"
200
+
201
+ android:layout_alignParentStart="true"
202
+
203
+ android:layout_alignParentRight="true"
204
+
205
+ android:layout_alignParentEnd="true" />
206
+
207
+
208
+
209
+ <Spinner
210
+
211
+ android:layout_width="wrap_content"
212
+
213
+ android:layout_height="30dp"
214
+
215
+ android:id="@+id/editingarea"
216
+
217
+ android:layout_below="@+id/editingintro"
218
+
219
+ android:layout_centerHorizontal="true"
220
+
221
+ android:layout_marginTop="10dp"/>
222
+
223
+
224
+
225
+ <Spinner
226
+
227
+ android:layout_width="wrap_content"
228
+
229
+ android:layout_height="30dp"
230
+
231
+ android:id="@+id/editingsex"
232
+
233
+ android:layout_centerHorizontal="true"
234
+
235
+ android:layout_marginTop="70dp"
236
+
237
+ android:layout_below="@+id/editingarea" />
238
+
239
+
240
+
241
+
242
+
243
+ <Button
244
+
245
+ android:layout_width="match_parent"
246
+
247
+ android:layout_height="40dp"
248
+
249
+ android:id="@+id/editsave"
250
+
251
+ android:layout_gravity="center_horizontal|bottom"
252
+
253
+ android:background="@drawable/round_button"
254
+
255
+ android:scaleType="fitXY"
256
+
257
+ android:layout_marginLeft="100dp"
258
+
259
+ android:text="保存"
260
+
261
+ android:textColor="#ffffff"
262
+
263
+ android:textSize="15sp"
264
+
265
+ android:textStyle="bold"
266
+
267
+ android:typeface="monospace"
268
+
269
+ android:layout_below="@+id/editingsex"
270
+
271
+ android:layout_centerHorizontal="true"
272
+
273
+ android:layout_marginTop="27dp" />
274
+
275
+
276
+
277
+ <LinearLayout
278
+
279
+ android:orientation="horizontal"
280
+
281
+ android:layout_width="fill_parent"
282
+
283
+ android:layout_height="30dp"
284
+
285
+ android:layout_below="@+id/editingarea"
286
+
287
+ android:layout_alignParentLeft="true"
288
+
289
+ android:layout_alignParentStart="true"
290
+
291
+ android:layout_marginTop="35dp"
292
+
293
+ android:weightSum="1">
294
+
295
+
296
+
297
+ <Spinner
298
+
299
+ android:layout_width="wrap_content"
300
+
301
+ android:layout_height="wrap_content"
302
+
303
+ android:id="@+id/birthYear"
304
+
305
+ android:layout_weight="0.3" />
306
+
307
+
308
+
309
+ <Spinner
310
+
311
+ android:layout_width="wrap_content"
312
+
313
+ android:layout_height="wrap_content"
314
+
315
+ android:id="@+id/birthMonth"
316
+
317
+ android:layout_weight="0.35" />
318
+
319
+
320
+
321
+ <Spinner
322
+
323
+ android:layout_width="wrap_content"
324
+
325
+ android:layout_height="wrap_content"
326
+
327
+ android:id="@+id/birthDay"
328
+
329
+ android:layout_weight="0.35" />
330
+
331
+ </LinearLayout>
332
+
333
+
334
+
335
+ <TextView
336
+
337
+ android:layout_width="wrap_content"
338
+
339
+ android:layout_height="wrap_content"
340
+
341
+ android:text="誕生日"
342
+
343
+ android:id="@+id/textView"
344
+
345
+ android:layout_below="@+id/editingarea"
346
+
347
+ android:layout_alignParentLeft="true"
348
+
349
+ android:layout_alignParentStart="true"
350
+
351
+ android:layout_marginLeft="20dp"
352
+
353
+ android:layout_marginTop="10dp" />
354
+
355
+
356
+
357
+ </RelativeLayout>
358
+
359
+ </ScrollView>
360
+
361
+ ```
362
+
363
+ と記載しました。