From 4cb51a38cba703027fc27be0a04de01f6cdbba24 Mon Sep 17 00:00:00 2001 From: NuanRMxi <2308425927@qq.com> Date: Sat, 9 Aug 2025 21:11:41 +0800 Subject: [PATCH] Refactoring UI --- MainPage.xaml | 191 ++++--- MainPage.xaml.cs | 390 ++++++-------- .../AndroidBackgroundServiceStarter.cs | 56 ++ .../Android/HeartRateKeepAliveService.cs | 491 ++++++++---------- Platforms/Android/MainApplication.cs | 9 + Services/HeartRateDataService.cs | 232 +++++++++ Services/IHeartRateDataService.cs | 74 +++ 7 files changed, 864 insertions(+), 579 deletions(-) create mode 100644 Platforms/Android/AndroidBackgroundServiceStarter.cs create mode 100644 Services/HeartRateDataService.cs create mode 100644 Services/IHeartRateDataService.cs diff --git a/MainPage.xaml b/MainPage.xaml index d7bc002..8a5a667 100644 --- a/MainPage.xaml +++ b/MainPage.xaml @@ -2,34 +2,84 @@ + BackgroundColor="#F8F9FA" + Title="心率监测"> - + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -37,75 +87,76 @@ - - - - + - - - - - - - - - - - - + + + + + + + -