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:
authorStefan Niedermann <info@niedermann.it>2020-06-20 15:39:14 +0300
committerNiedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com>2020-06-20 20:25:50 +0300
commite81094e64cb79f6410950d8530d969519833a35b (patch)
tree66edb991d74acf60585e657b8a79e8a7276b4fce
parentc6dec8542a6c41a42dc9dfa06fb0e495257b1673 (diff)
#883 Move the fav star in grid mode
-rw-r--r--app/src/main/res/layout/item_notes_list_note_item_grid.xml43
-rw-r--r--app/src/main/res/layout/item_notes_list_note_item_grid_only_title.xml35
-rw-r--r--app/src/main/res/values/dimens.xml1
3 files changed, 41 insertions, 38 deletions
diff --git a/app/src/main/res/layout/item_notes_list_note_item_grid.xml b/app/src/main/res/layout/item_notes_list_note_item_grid.xml
index a776d53e..8a0f2f5d 100644
--- a/app/src/main/res/layout/item_notes_list_note_item_grid.xml
+++ b/app/src/main/res/layout/item_notes_list_note_item_grid.xml
@@ -53,27 +53,6 @@
android:orientation="horizontal">
<FrameLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1">
-
- <com.google.android.material.chip.Chip
- android:id="@+id/noteCategory"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/spacer_2x"
- android:layout_marginEnd="0dp"
- android:ellipsize="middle"
- android:textColor="?android:textColorPrimary"
- android:textSize="@dimen/secondary_font_size"
- app:chipBackgroundColor="@color/primary"
- app:chipStrokeColor="@color/defaultBrand"
- app:chipStrokeWidth="1dp"
- tools:maxLength="50"
- tools:text="@tools:sample/lorem/random" />
- </FrameLayout>
-
- <FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
@@ -96,6 +75,28 @@
android:baseline="14dp"
app:srcCompat="@drawable/ic_sync_blue_18dp" />
</FrameLayout>
+
+ <FrameLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1">
+
+ <com.google.android.material.chip.Chip
+ android:id="@+id/noteCategory"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="end"
+ android:layout_marginStart="0dp"
+ android:layout_marginEnd="@dimen/spacer_2x"
+ android:ellipsize="middle"
+ android:textColor="?android:textColorPrimary"
+ android:textSize="@dimen/secondary_font_size"
+ app:chipBackgroundColor="@color/primary"
+ app:chipStrokeColor="@color/defaultBrand"
+ app:chipStrokeWidth="1dp"
+ tools:maxLength="50"
+ tools:text="@tools:sample/lorem/random" />
+ </FrameLayout>
</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_notes_list_note_item_grid_only_title.xml b/app/src/main/res/layout/item_notes_list_note_item_grid_only_title.xml
index 65f56efb..9e7d0f3b 100644
--- a/app/src/main/res/layout/item_notes_list_note_item_grid_only_title.xml
+++ b/app/src/main/res/layout/item_notes_list_note_item_grid_only_title.xml
@@ -17,25 +17,10 @@
android:orientation="horizontal"
android:paddingBottom="@dimen/spacer_1x">
- <TextView
- android:id="@+id/noteTitle"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/spacer_2x"
- android:layout_marginTop="@dimen/spacer_2x"
- android:layout_marginEnd="@dimen/spacer_2x"
- android:layout_marginBottom="@dimen/spacer_1x"
- android:layout_weight="1"
- android:hyphenationFrequency="full"
- android:textAppearance="?attr/textAppearanceHeadline5"
- android:textColor="@color/fg_default"
- tools:maxLength="50"
- tools:targetApi="m"
- tools:text="@tools:sample/lorem/random" />
-
<FrameLayout
android:layout_width="wrap_content"
- android:layout_height="wrap_content">
+ android:layout_height="wrap_content"
+ android:layout_marginTop="@dimen/spacer_1qx">
<ImageView
android:id="@+id/noteFavorite"
@@ -56,5 +41,21 @@
android:baseline="14dp"
app:srcCompat="@drawable/ic_sync_blue_18dp" />
</FrameLayout>
+
+ <TextView
+ android:id="@+id/noteTitle"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="0dp"
+ android:layout_marginTop="@dimen/spacer_2x"
+ android:layout_marginEnd="@dimen/spacer_2x"
+ android:layout_marginBottom="@dimen/spacer_1x"
+ android:layout_weight="1"
+ android:hyphenationFrequency="full"
+ android:textAppearance="?attr/textAppearanceHeadline5"
+ android:textColor="@color/fg_default"
+ tools:maxLength="50"
+ tools:targetApi="m"
+ tools:text="@tools:sample/lorem/random" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView> \ No newline at end of file
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
index 1ca57c54..54b8e913 100644
--- a/app/src/main/res/values/dimens.xml
+++ b/app/src/main/res/values/dimens.xml
@@ -2,6 +2,7 @@
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
+ <dimen name="spacer_1qx">2dp</dimen>
<dimen name="spacer_1hx">4dp</dimen>
<dimen name="spacer_1x">8dp</dimen>
<dimen name="spacer_2x">16dp</dimen>