Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e81094e6 authored by Stefan Niedermann's avatar Stefan Niedermann Committed by Niedermann IT-Dienstleistungen
Browse files

#883 Move the fav star in grid mode

parent c6dec854
Loading
Loading
Loading
Loading
+22 −21
Original line number Diff line number Diff line
@@ -52,27 +52,6 @@
            android:gravity="center_vertical"
            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
+18 −17
Original line number Diff line number Diff line
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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>