質問編集履歴

1

レイアウトファイルの追加

2020/02/01 11:00

投稿

rrraaaiiibbbuuu
rrraaaiiibbbuuu

スコア5

test CHANGED
File without changes
test CHANGED
@@ -304,6 +304,124 @@
304
304
 
305
305
 
306
306
 
307
+ ```activity_main.xml
308
+
309
+ <?xml version="1.0" encoding="utf-8"?>
310
+
311
+
312
+
313
+ <ListView
314
+
315
+ xmlns:android="http://schemas.android.com/apk/res/android"
316
+
317
+ android:id="@+id/lvMenu"
318
+
319
+ android:layout_width="match_parent"
320
+
321
+ android:layout_height="match_parent"/>
322
+
323
+ ```
324
+
325
+
326
+
327
+ ```activity_menu_thanks.xml
328
+
329
+ <?xml version="1.0" encoding="utf-8"?>
330
+
331
+ <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
332
+
333
+ xmlns:app="http://schemas.android.com/apk/res-auto"
334
+
335
+ xmlns:tools="http://schemas.android.com/tools"
336
+
337
+ android:layout_width="match_parent"
338
+
339
+ android:layout_height="match_parent"
340
+
341
+ tools:context=".MenuThanksActivity">
342
+
343
+
344
+
345
+ </androidx.constraintlayout.widget.ConstraintLayout>
346
+
347
+ ```
348
+
349
+
350
+
351
+ ```row.xml
352
+
353
+ <?xml version="1.0" encoding="utf-8"?>
354
+
355
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
356
+
357
+ android:orientation="vertical" android:layout_width="match_parent"
358
+
359
+ android:layout_height="match_parent">
360
+
361
+
362
+
363
+ <TextView
364
+
365
+ android:id="@+id/tvMenuName"
366
+
367
+ android:layout_width="match_parent"
368
+
369
+ android:layout_height="wrap_content"
370
+
371
+ android:layout_marginLeft="10dp"
372
+
373
+ android:layout_marginTop="10dp"
374
+
375
+ android:textSize="18sp"/>
376
+
377
+
378
+
379
+ <LinearLayout
380
+
381
+ android:layout_width="match_parent"
382
+
383
+ android:layout_height="match_parent"
384
+
385
+ android:layout_marginBottom="10dp"
386
+
387
+ android:layout_marginLeft="10dp"
388
+
389
+ android:orientation="horizontal">
390
+
391
+
392
+
393
+ <TextView
394
+
395
+ android:id="@+id/tvMenuPrice"
396
+
397
+ android:layout_width="wrap_content"
398
+
399
+ android:layout_height="wrap_content"
400
+
401
+ android:textSize="14sp"/>
402
+
403
+
404
+
405
+ <TextView
406
+
407
+ android:layout_width="wrap_content"
408
+
409
+ android:layout_height="wrap_content"
410
+
411
+ android:text="@string/tv_menu_unit"
412
+
413
+ android:textSize="14sp"/>
414
+
415
+
416
+
417
+ </LinearLayout>
418
+
419
+
420
+
421
+ </LinearLayout>
422
+
423
+ ```
424
+
307
425
 
308
426
 
309
427
  ### 試したこと