質問編集履歴

1

追記

2019/07/04 01:16

投稿

tabasu
tabasu

スコア6

test CHANGED
File without changes
test CHANGED
@@ -473,3 +473,109 @@
473
473
  }
474
474
 
475
475
  ```
476
+
477
+ activity_main.xml
478
+
479
+ ```xml
480
+
481
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
482
+
483
+ xmlns:tools="http://schemas.android.com/tools"
484
+
485
+ android:layout_width="match_parent"
486
+
487
+ android:layout_height="match_parent"
488
+
489
+ android:orientation="vertical"
490
+
491
+ android:padding="15dp"
492
+
493
+ tools:context=".MainActivity" >
494
+
495
+
496
+
497
+ <EditText
498
+
499
+ android:layout_width="match_parent"
500
+
501
+ android:layout_height="wrap_content"
502
+
503
+ android:id="@+id/search"/>
504
+
505
+
506
+
507
+ <LinearLayout
508
+
509
+ android:layout_width="match_parent"
510
+
511
+ android:layout_height="match_parent"
512
+
513
+ android:layout_weight="9"
514
+
515
+ android:gravity="top"
516
+
517
+ android:orientation="horizontal" >
518
+
519
+
520
+
521
+ <ListView
522
+
523
+ android:id="@+id/PhoneList"
524
+
525
+ android:layout_width="match_parent"
526
+
527
+ android:layout_height="match_parent" >
528
+
529
+ </ListView>
530
+
531
+ </LinearLayout>
532
+
533
+
534
+
535
+ <LinearLayout
536
+
537
+ android:layout_width="match_parent"
538
+
539
+ android:layout_height="48dp"
540
+
541
+ android:layout_weight="1"
542
+
543
+ android:gravity="bottom"
544
+
545
+ android:orientation="horizontal" >
546
+
547
+
548
+
549
+ <Button
550
+
551
+ android:id="@+id/entry"
552
+
553
+ android:layout_width="match_parent"
554
+
555
+ android:layout_height="48dp"
556
+
557
+ android:layout_weight="1"
558
+
559
+ android:text="新規 " />
560
+
561
+
562
+
563
+ <Button
564
+
565
+ android:id="@+id/delete"
566
+
567
+ android:layout_width="match_parent"
568
+
569
+ android:layout_height="48dp"
570
+
571
+ android:layout_weight="1"
572
+
573
+ android:text="すべてのデータ削除" />
574
+
575
+ </LinearLayout>
576
+
577
+
578
+
579
+ </LinearLayout>
580
+
581
+ ```