Skip to content

Commit bcccc25

Browse files
style(list): Rezise single line list items
Signed-off-by: Andy Scherzinger <[email protected]>
1 parent c6439f8 commit bcccc25

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

app/src/main/java/it/niedermann/owncloud/notes/main/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ private void setupNotesList() {
535535
listView.setLayoutManager(layoutManager);
536536
listView.addItemDecoration(new SectionItemDecoration(adapter,
537537
getResources().getDimensionPixelSize(R.dimen.spacer_activity_sides) + getResources().getDimensionPixelSize(R.dimen.spacer_1x) + getResources().getDimensionPixelSize(R.dimen.spacer_3x) + getResources().getDimensionPixelSize(R.dimen.spacer_2x),
538-
getResources().getDimensionPixelSize(R.dimen.spacer_3x),
538+
getResources().getDimensionPixelSize(R.dimen.spacer_2x),
539539
getResources().getDimensionPixelSize(R.dimen.spacer_1x),
540540
0
541541
));

app/src/main/res/layout/item_notes_list_note_item_without_excerpt.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
android:id="@+id/noteSwipeFrame"
1919
android:layout_width="match_parent"
2020
android:layout_height="match_parent"
21-
android:layout_marginStart="@dimen/spacer_1x"
22-
android:layout_marginEnd="@dimen/spacer_1x"
21+
android:layout_margin="@dimen/spacer_1x"
2322
app:cardBackgroundColor="@color/bg_attention"
2423
app:strokeColor="@color/transparent">
2524

@@ -113,7 +112,7 @@
113112
android:layout_weight="1"
114113
android:ellipsize="end"
115114
android:maxLines="1"
116-
android:paddingVertical="@dimen/spacer_2x"
115+
android:paddingVertical="@dimen/spacer_1x"
117116
android:textColor="?android:textColorPrimary"
118117
android:textSize="@dimen/primary_font_size"
119118
tools:text="@tools:sample/lorem/random" />

app/src/main/res/layout/item_notes_list_section_item.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!--
33
~ Nextcloud Notes - Android Client
44
~
5-
~ SPDX-FileCopyrightText: 2015-2024 Nextcloud GmbH and Nextcloud contributors
5+
~ SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
66
~ SPDX-License-Identifier: GPL-3.0-or-later
77
-->
88
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
@@ -16,7 +16,8 @@
1616
android:ellipsize="end"
1717
android:gravity="center_vertical"
1818
android:hint="@string/listview_updated_yesterday"
19-
android:padding="@dimen/spacer_1x"
19+
android:paddingStart="@dimen/spacer_1x"
20+
android:paddingEnd="@dimen/zero"
2021
android:textColor="@color/fg_default_selection"
21-
android:textStyle="bold"
22-
android:textSize="@dimen/primary_font_size" />
22+
android:textSize="@dimen/primary_font_size"
23+
android:textStyle="bold" />

0 commit comments

Comments
 (0)