From 3b2fad899679fd3b7d72ac59327173db199323be Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 16 Jun 2024 20:42:40 +0200 Subject: [PATCH] clipboard: Vertical layout Put the recently copied text at the top and the pinned text at the bottom. This should remain intuitive as the recent history should stay small. --- res/layout/clipboard_history_entry.xml | 4 +- res/layout/clipboard_pane.xml | 12 +++--- res/layout/clipboard_pin_entry.xml | 4 +- res/values/styles.xml | 11 ++++-- .../juloo.keyboard2/ClipboardHistoryView.java | 3 +- srcs/juloo.keyboard2/ClipboardPinView.java | 3 +- srcs/juloo.keyboard2/NonScrollListView.java | 38 +++++++++++++++++++ 7 files changed, 59 insertions(+), 16 deletions(-) create mode 100644 srcs/juloo.keyboard2/NonScrollListView.java diff --git a/res/layout/clipboard_history_entry.xml b/res/layout/clipboard_history_entry.xml index 901c402..45bc22a 100644 --- a/res/layout/clipboard_history_entry.xml +++ b/res/layout/clipboard_history_entry.xml @@ -1,5 +1,7 @@ - + + + diff --git a/res/layout/clipboard_pane.xml b/res/layout/clipboard_pane.xml index 9929afa..bcb96a3 100644 --- a/res/layout/clipboard_pane.xml +++ b/res/layout/clipboard_pane.xml @@ -1,14 +1,12 @@ - - + + - - - + - + - + diff --git a/res/layout/clipboard_pin_entry.xml b/res/layout/clipboard_pin_entry.xml index 7678cd0..d46e18b 100644 --- a/res/layout/clipboard_pin_entry.xml +++ b/res/layout/clipboard_pin_entry.xml @@ -1,5 +1,7 @@ - + + + diff --git a/res/values/styles.xml b/res/values/styles.xml index e47ec47..c230cd1 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -34,12 +34,17 @@ 700 ?attr/colorSubLabel +