Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/item_notes_list_note_item_with_excerpt.xml')
-rw-r--r--app/src/main/res/layout/item_notes_list_note_item_with_excerpt.xml129
1 files changed, 129 insertions, 0 deletions
diff --git a/app/src/main/res/layout/item_notes_list_note_item_with_excerpt.xml b/app/src/main/res/layout/item_notes_list_note_item_with_excerpt.xml
new file mode 100644
index 00000000..fe4d8b0b
--- /dev/null
+++ b/app/src/main/res/layout/item_notes_list_note_item_with_excerpt.xml
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout 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:id="@+id/noteSwipeFrame"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@color/bg_attention">
+
+ <ImageView
+ android:id="@+id/noteFavoriteLeft"
+ android:layout_width="32dp"
+ android:layout_height="32dp"
+ android:layout_gravity="center_vertical"
+ android:layout_marginStart="@dimen/button_padding"
+ android:layout_marginLeft="@dimen/button_padding"
+ android:contentDescription="@string/menu_favorite"
+ app:srcCompat="@drawable/ic_star_white_24dp" />
+
+ <ImageView
+ android:id="@+id/noteDeleteRight"
+ android:layout_width="32dp"
+ android:layout_height="32dp"
+ android:layout_gravity="end|center_vertical"
+ android:layout_marginEnd="@dimen/button_padding"
+ android:layout_marginRight="@dimen/button_padding"
+ android:contentDescription="@string/menu_delete"
+ app:srcCompat="@drawable/ic_delete_white_32dp" />
+
+ <LinearLayout
+ android:id="@+id/noteSwipeable"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/list_item_background_selector"
+ android:baselineAligned="false">
+
+ <FrameLayout
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent">
+
+ <ImageView
+ android:id="@+id/noteFavorite"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:background="?attr/selectableItemBackgroundBorderless"
+ android:contentDescription="@string/menu_favorite"
+ android:padding="@dimen/spacer_2x"
+ tools:src="@drawable/ic_star_yellow_24dp" />
+
+ <androidx.appcompat.widget.AppCompatImageView
+ android:id="@+id/noteStatus"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical|end"
+ android:layout_marginTop="12dp"
+ android:layout_marginEnd="4dp"
+ android:layout_marginRight="4dp"
+ android:baseline="14dp"
+ app:srcCompat="@drawable/ic_sync_blue_18dp" />
+ </FrameLayout>
+
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:orientation="vertical"
+ android:paddingStart="0dp"
+ android:paddingLeft="0dp"
+ android:paddingTop="@dimen/spacer_2x"
+ android:paddingEnd="@dimen/spacer_2x"
+ android:paddingRight="@dimen/spacer_2x"
+ android:paddingBottom="@dimen/spacer_2x">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <TextView
+ android:id="@+id/noteTitle"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:textColor="?android:textColorPrimary"
+ android:textSize="@dimen/primary_font_size"
+ tools:text="@tools:sample/lorem/random" />
+ </LinearLayout>
+
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <TextView
+ android:id="@+id/noteExcerpt"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:paddingTop="1dp"
+ android:paddingBottom="1dp"
+ android:textSize="@dimen/secondary_font_size"
+ tools:text="@tools:sample/lorem/random" />
+
+ <TextView
+ android:id="@+id/noteCategory"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="@dimen/spacer_1x"
+ android:layout_marginLeft="@dimen/spacer_1x"
+ android:background="@drawable/border"
+ android:maxLines="1"
+ android:paddingLeft="@dimen/spacer_1x"
+ android:paddingTop="1dp"
+ android:paddingRight="@dimen/spacer_1x"
+ android:paddingBottom="1dp"
+ android:singleLine="true"
+ android:textColor="?android:textColorPrimary"
+ android:textSize="@dimen/secondary_font_size"
+ tools:maxLength="15"
+ tools:text="@tools:sample/lorem/random" />
+ </LinearLayout>
+ </LinearLayout>
+ </LinearLayout>
+
+</FrameLayout>