From 9dda0adbedbf0edfef5d205d80c42c83e6c21ff1 Mon Sep 17 00:00:00 2001 From: Asura146 Date: Thu, 11 Jan 2024 16:17:23 +0900 Subject: [PATCH] WIP --- .../com/example/childguard/MainActivity.java | 4 + app/src/main/res/layout/activity_main.xml | 2 +- app/src/main/res/layout/fragment_home.xml | 195 ++++++++++-------- 3 files changed, 110 insertions(+), 91 deletions(-) diff --git a/app/src/main/java/com/example/childguard/MainActivity.java b/app/src/main/java/com/example/childguard/MainActivity.java index 9c79486..4cd26ee 100644 --- a/app/src/main/java/com/example/childguard/MainActivity.java +++ b/app/src/main/java/com/example/childguard/MainActivity.java @@ -17,6 +17,9 @@ import android.os.Vibrator; import com.google.android.material.bottomnavigation.BottomNavigationView; +import java.util.Random; +import java.util.UUID; + public class MainActivity extends AppCompatActivity { BluetoothManager bluetoothManager; @@ -27,6 +30,7 @@ public class MainActivity extends AppCompatActivity { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); + //通知のやつ↓ int importance = NotificationManager.IMPORTANCE_DEFAULT; diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index f7e6c7d..5377215 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -16,7 +16,7 @@ android:name="com.example.childguard.HomeFragment" android:layout_width="0dp" android:layout_height="0dp" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toTopOf="@id/nav_view" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index 338a0d3..504ddf1 100644 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -1,5 +1,5 @@ - - - + + + android:orientation="vertical" > + - + - + - + - + - + - + - + -