feat: Implement support for foldable devices with enhanced UI layout

- Added handling for foldable devices in MainActivity, including hinge detection and layout adjustments.
- Introduced new UI components for managing two-pane layouts on tablets and foldables.
- Updated CalendarScreen, HomeScreen, PlansScreen, and SearchScreen to utilize the new foldable layout logic.
- Created Fold.kt and Tabletop.kt to manage fold-related UI behavior and display.
- Enhanced animations for menu visibility on foldable devices.
- Updated Motion.kt to include new motion duration constants.
- Added dependency for androidx.window to support foldable features.
This commit is contained in:
2026-10-20 01:12:28 +03:00
parent 9b5062f0ed
commit 3055cbaf3c
13 changed files with 202986 additions and 194083 deletions

View File

@@ -13,6 +13,7 @@ glance = "1.2.0"
work = "2.12.0"
desugar = "2.1.5"
material = "1.13.0"
window = "1.5.1"
junit = "4.13.2"
[libraries]
@@ -37,6 +38,8 @@ desugar = { module = "com.android.tools:desugar_jdk_libs", version.ref = "desuga
# Only for MaterialColors.harmonize; R8 drops the rest from release builds.
material = { module = "com.google.android.material:material", version.ref = "material" }
junit = { module = "junit:junit", version.ref = "junit" }
# Folds and hinges of foldable phones (FoldingFeature).
window = { module = "androidx.window:window", version.ref = "window" }
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }