Features: - Migrate NoteEditorActivity from XML to Jetpack Compose - Support both TEXT and CHECKLIST note types - FOSS native drag & drop using Compose Foundation APIs (no external dependencies) - Auto-keyboard focus with explicit keyboard controller show() calls - Consistent placeholder text for empty checklist items - Unified delete dialog with Server/Local deletion options Components: - ComposeNoteEditorActivity: Activity wrapper with ViewModelFactory for SavedStateHandle - NoteEditorScreen: Main editor screen supporting TEXT and CHECKLIST modes - NoteEditorViewModel: State management with WebDav server deletion support - ChecklistItemRow: Individual checklist item with drag handle, checkbox, text input - DragDropState: FOSS drag & drop implementation using LazyListState Improvements: - Auto-keyboard shows when creating new notes (focuses title/content) - Keyboard consistently shows when adding new checklist items - Placeholder text 'Neues Element…' for empty list items - Delete dialog unified with MainScreen (Server/Local options) - Server deletion via WebDavSyncService.deleteNoteFromServer() Debug Enhancements: - Debug builds have orange icon background (#FFB74D) with red badge - Debug builds show 'Simple Notes (Debug)' app name - Easy differentiation between debug and release APKs in launcher Build Status: - compileStandardDebug: SUCCESS - No breaking changes to existing XML-based screens - Material 3 theming with Dynamic Colors (Material You) applied Migration Notes: - Old NoteEditorActivity (XML-based) remains for reference/backwards compatibility - All editor UI is now Compose-based - ComposeMainActivity updated to use new ComposeNoteEditorActivity - Plan document (v1.5.0_EXTENDED_FEATURES_PLAN.md) updated with implementation details
Simple Notes - Android App
🚧 Development Setup
Voraussetzungen
- Android Studio Hedgehog (2023.1.1) oder neuer
- JDK 17
- Android SDK 34
- Min SDK 24
Projekt in Android Studio öffnen
# In Android Studio:
# File → New → New Project
# Template: Empty Views Activity
#
# Settings:
# Name: Simple Notes
# Package: com.example.simplenotes
# Save location: /home/liq/gitProjects/simple-notes-sync/android/
# Language: Kotlin
# Minimum SDK: API 24
# Build configuration: Kotlin DSL
Dependencies
Siehe ANDROID_GUIDE.md in project-docs für vollständige build.gradle.kts:
Hauptabhängigkeiten:
- Sardine Android (WebDAV Client)
- Kotlin Coroutines
- Gson (JSON)
- WorkManager (Background Sync)
- Material Design Components
Projektstruktur
android/
└── app/
└── src/
└── main/
├── AndroidManifest.xml
├── java/com/example/simplenotes/
│ ├── MainActivity.kt
│ ├── NoteEditorActivity.kt
│ ├── SettingsActivity.kt
│ ├── models/
│ │ ├── Note.kt
│ │ └── SyncStatus.kt
│ ├── storage/
│ │ └── NotesStorage.kt
│ ├── sync/
│ │ ├── WebDavSyncService.kt
│ │ ├── WifiSyncReceiver.kt
│ │ ├── SyncWorker.kt
│ │ └── ConflictResolver.kt
│ ├── adapters/
│ │ └── NotesAdapter.kt
│ └── utils/
│ ├── DeviceIdGenerator.kt
│ ├── NotificationHelper.kt
│ ├── Extensions.kt
│ └── Constants.kt
└── res/
├── layout/
├── values/
└── drawable/
📖 Development Guide
Vollständige Code-Beispiele und Implementation:
🏗️ Build
# Debug Build
./gradlew assembleDebug
# Release Build
./gradlew assembleRelease
# Install on connected device
./gradlew installDebug
🧪 Testing
# Run unit tests
./gradlew test
# Run instrumented tests
./gradlew connectedAndroidTest
📝 TODO
- Projekt in Android Studio erstellen
- Dependencies einrichten
- Models implementieren (Note.kt, SyncStatus.kt)
- Storage Layer (NotesStorage.kt)
- UI Layouts erstellen
- Activities implementieren
- Sync Service (WebDavSyncService.kt)
- WLAN Detection (WifiSyncReceiver.kt)
- WorkManager Setup (SyncWorker.kt)
- Notifications (NotificationHelper.kt)
- Error Handling
- Testing
Next Step: Projekt in Android Studio erstellen und Code aus ANDROID_GUIDE.md übernehmen.