Skip to content

clipboard enhancements#1327

Open
lokeshlkr wants to merge 4 commits into
Julow:masterfrom
lokeshlkr:clipboard-improvements
Open

clipboard enhancements#1327
lokeshlkr wants to merge 4 commits into
Julow:masterfrom
lokeshlkr:clipboard-improvements

Conversation

@lokeshlkr

Copy link
Copy Markdown
Contributor

adds maxLines attribute on clipboard history text view.
its set to 3 lines, same as already present for pinned items text view.

addresses issue #1321

@lokeshlkr

Copy link
Copy Markdown
Contributor Author

a63acb5

adds point 4 from #1311
Adds numerical serial number for each entry in pinned and recent clipboard items.

@lokeshlkr lokeshlkr changed the title limit clipboard history preview to 3 lines clipboard enhancements Jun 13, 2026
@lokeshlkr

lokeshlkr commented Jun 13, 2026

Copy link
Copy Markdown
Contributor Author

fc2c4fc

changes:

@Julow Julow left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for this :)

I think there's too much margin around the text (above and below and with the number). It's taking too much space in landscape mode notably.

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not the right place. The resources are in res/.
Also I prefer that the name refer to what its used for instead of what it does at the moment, for example clipboard_item_background.

Comment on lines +8 to +12
<TextView android:id="@+id/clipboard_pin_text" style="@style/clipboardEntry"
android:layout_width="0dp" android:layout_weight="150"
android:background="@drawable/rounded_corner"
android:backgroundTint="#19FFFFFF" android:maxLines="3"
android:padding="5dp" />

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of the new attributes are duplicated in clipboard_history_entry.xml. Can you move them to the clipboardEntry style in res/values/styles.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants