From 2190a509ef3bc2d051293f81988c3777b9856260 Mon Sep 17 00:00:00 2001 From: kagura Date: Thu, 10 Oct 2024 21:12:46 +0800 Subject: [PATCH] add search and sort --- .idea/compiler.xml | 2 +- .idea/gradle.xml | 3 +- .idea/misc.xml | 2 +- app/build.gradle.kts | 1 + app/src/main/AndroidManifest.xml | 135 +++---- .../example/myapplication/SettingStorage.kt | 37 ++ .../myapplication/compose/SearchActivity.kt | 23 +- .../myapplication/compose/SettingActivity.kt | 17 + .../myapplication/compose/ui/FileColumn.kt | 53 ++- .../compose/ui/SearchFileColumn.kt | 358 ++++++++++++++++++ .../myapplication/compose/ui/Setting.kt | 68 ++++ .../example/myapplication/document_page.kt | 4 +- .../myapplication/fileSystem/FileSearcher.kt | 45 +++ .../com/example/myapplication/main_page.java | 7 + .../myapplication/utils/AlertHelper.kt | 20 + .../res/drawable/baseline_access_time_24.xml | 7 + app/src/main/res/drawable/ic_search.xml | 13 +- app/src/main/res/layout/main_page.xml | 32 +- app/src/main/res/values/strings.xml | 167 ++++---- app/src/main/res/values/themes.xml | 12 +- gradle/libs.versions.toml | 2 + 21 files changed, 825 insertions(+), 183 deletions(-) create mode 100644 app/src/main/java/com/example/myapplication/SettingStorage.kt create mode 100644 app/src/main/java/com/example/myapplication/compose/SettingActivity.kt create mode 100644 app/src/main/java/com/example/myapplication/compose/ui/SearchFileColumn.kt create mode 100644 app/src/main/java/com/example/myapplication/compose/ui/Setting.kt create mode 100644 app/src/main/java/com/example/myapplication/fileSystem/FileSearcher.kt create mode 100644 app/src/main/res/drawable/baseline_access_time_24.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml index b589d56..b86273d 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 0897082..55df8d7 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -4,8 +4,9 @@