Features: - Interactive checklists with tap-to-check, drag & drop sorting - GitHub-flavored Markdown export (- [ ] / - [x]) - FAB menu for note type selection Fixes: - Improved Markdown parsing (robust line-based content extraction) - Better duplicate filename handling (ID suffix) - Foreground notification suppression Privacy: - Removed ACCESS_WIFI_STATE and CHANGE_WIFI_STATE permissions (SSID binding was never used, app only checks connectivity state) Code Quality: - Fixed 7 Detekt warnings (SwallowedException, MaxLineLength, MagicNumber)
109 lines
4.3 KiB
XML
109 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Material 3: Filled Card Style (Flat, No Shadow) -->
|
|
<!-- v1.4.0: Unterstützt jetzt TEXT und CHECKLIST Notizen -->
|
|
<com.google.android.material.card.MaterialCardView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="8dp"
|
|
android:layout_marginVertical="6dp"
|
|
style="@style/Widget.Material3.CardView.Filled"
|
|
app:cardCornerRadius="16dp"
|
|
app:cardElevation="0dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="20dp">
|
|
|
|
<!-- v1.4.0: Header Row mit Icon und Titel -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<!-- v1.4.0: Note Type Icon -->
|
|
<ImageView
|
|
android:id="@+id/ivNoteTypeIcon"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:src="@drawable/ic_note_24"
|
|
app:tint="?attr/colorPrimary"
|
|
android:contentDescription="@null" />
|
|
|
|
<!-- Material 3 Typography: TitleMedium -->
|
|
<TextView
|
|
android:id="@+id/textViewTitle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/note_title_placeholder"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
android:maxLines="2"
|
|
android:ellipsize="end" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Content Preview (für TEXT Notizen) -->
|
|
<TextView
|
|
android:id="@+id/textViewContent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="6dp"
|
|
android:text="@string/note_content_placeholder"
|
|
android:textAppearance="@style/TextAppearance.Material3.BodyMedium"
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
android:maxLines="3"
|
|
android:ellipsize="end" />
|
|
|
|
<!-- v1.4.0: Checklist Preview (für CHECKLIST Notizen) -->
|
|
<TextView
|
|
android:id="@+id/textViewChecklistPreview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="6dp"
|
|
android:visibility="gone"
|
|
android:textAppearance="@style/TextAppearance.Material3.BodyMedium"
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
tools:visibility="visible"
|
|
tools:text="2/5 erledigt" />
|
|
|
|
<!-- Metadata Row mit Timestamp und Sync-Status -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<!-- Material 3 Typography: LabelSmall -->
|
|
<TextView
|
|
android:id="@+id/textViewTimestamp"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/note_timestamp_placeholder"
|
|
android:textAppearance="@style/TextAppearance.Material3.LabelSmall"
|
|
android:textColor="?attr/colorOutline" />
|
|
|
|
<!-- Sync-Status Icon mit Theme-Farbe -->
|
|
<ImageView
|
|
android:id="@+id/imageViewSyncStatus"
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:src="@android:drawable/ic_popup_sync"
|
|
app:tint="?attr/colorPrimary"
|
|
android:contentDescription="@string/sync_status" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|