From e60e1e597b85ce2cc94818a42ff9e30547af94f8 Mon Sep 17 00:00:00 2001 From: Gilles Debunne Date: Thu, 20 Jan 2011 12:19:44 -0800 Subject: [PATCH] Paste popup window is displayed on the side when it would be clipped on top of screen. Bug 3259774 Change-Id: I6ea20452a3a235e264c91c112f52da7230657708 --- api/current.xml | 22 ++++ core/java/android/widget/TextView.java | 104 +++++++++++++----- .../text_edit_side_paste_window.9.png | Bin 0 -> 892 bytes .../text_edit_side_paste_window.9.png | Bin 0 -> 426 bytes .../layout/text_edit_side_no_paste_window.xml | 38 +++++++ .../layout/text_edit_side_paste_window.xml | 38 +++++++ core/res/res/values/attrs.xml | 11 ++ core/res/res/values/public.xml | 2 + core/res/res/values/styles.xml | 2 + core/res/res/values/themes.xml | 2 + 10 files changed, 189 insertions(+), 30 deletions(-) create mode 100644 core/res/res/drawable-hdpi/text_edit_side_paste_window.9.png create mode 100644 core/res/res/drawable-mdpi/text_edit_side_paste_window.9.png create mode 100644 core/res/res/layout/text_edit_side_no_paste_window.xml create mode 100644 core/res/res/layout/text_edit_side_paste_window.xml diff --git a/api/current.xml b/api/current.xml index 52d48b63a0ac9..8655ad32f8fda 100644 --- a/api/current.xml +++ b/api/current.xml @@ -9926,6 +9926,28 @@ visibility="public" > + + + + GajM2$EK)K%|RF{{9=5zhjXM*OF| zpuhYC5CP&wybq|~qO246fv_o7jd&VZC@)yf9-zgDLk`Gohgm)hG#GK7GI{f`Nf^iD zj;j41?~LOllzLtTVy@`eLpn|Y1u5^NIKFo~($R-WK0)b=xlSw=^Y{1nUj}GvYdfcD zn&Y2NKA+E~)9E3A?(Xgf*=*K4%SgurkntH$nt{FL74`J=9P8@pIva^Znlw#|1A#)J zfYXm)Fc^qLB2Dpld}eTP@TbLlTmr7ip0}J;lF4L8G#YIO&~+VM*KPNtT~t*K$u^V8 zWC!rpqF4w@v(0%xD=)FQxY(=f`W`5*Xgh_X6tx0@z>3g2@}e9!)1qH@&@c|qcerq{l@pCk zbXNMBxnGQYn_%?r4IWq1CdIV=E16Vipi24I15BtY-}E&y`&&4D)759+<15zFgUH9mjUd?vHR$##cLeu%uQ1 literal 0 HcmV?d00001 diff --git a/core/res/res/drawable-mdpi/text_edit_side_paste_window.9.png b/core/res/res/drawable-mdpi/text_edit_side_paste_window.9.png new file mode 100644 index 0000000000000000000000000000000000000000..d87c35b85bdd53775db03a94144c80c276252974 GIT binary patch literal 426 zcmV;b0agBqP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2ipM@ z6Dc0{9}txQ00AmVL_t(o!|j;8PQx%1MvqPF)QsuE(v?a~9oTpW-hjE!#A~p2WtKpiei_=L2iMlQvMkHNtR+;(RY09M7|fAY2WaD#4lqbU(NE`S{P0Fc4Noc=Vg7CH)6udCVnCmyNh`PI zq9``bIaik(-VAUv&VWZ5bQl2O`wYDF43T-ygXDA_^mT{E@4$0ieV~=X!>RR%FBddG Ut+%GbxBvhE07*qoM6N<$f_u=cng9R* literal 0 HcmV?d00001 diff --git a/core/res/res/layout/text_edit_side_no_paste_window.xml b/core/res/res/layout/text_edit_side_no_paste_window.xml new file mode 100644 index 0000000000000..0ed384979ecd3 --- /dev/null +++ b/core/res/res/layout/text_edit_side_no_paste_window.xml @@ -0,0 +1,38 @@ + + + + + + + + diff --git a/core/res/res/layout/text_edit_side_paste_window.xml b/core/res/res/layout/text_edit_side_paste_window.xml new file mode 100644 index 0000000000000..689a0392a8fe2 --- /dev/null +++ b/core/res/res/layout/text_edit_side_paste_window.xml @@ -0,0 +1,38 @@ + + + + + + + + diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index fbd5b5e812346..e76692ad3ee0e 100755 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -649,6 +649,11 @@ + + + + @@ -2741,6 +2746,12 @@ + + + + + diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 786c4d080acfd..e6552dfcea8b6 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -1633,6 +1633,8 @@ + + diff --git a/core/res/res/values/styles.xml b/core/res/res/values/styles.xml index 939e9ef100637..2c627309c8803 100644 --- a/core/res/res/values/styles.xml +++ b/core/res/res/values/styles.xml @@ -419,6 +419,8 @@ ?android:attr/textSelectHandle ?android:attr/textEditPasteWindowLayout ?android:attr/textEditNoPasteWindowLayout + ?android:attr/textEditSidePasteWindowLayout + ?android:attr/textEditSideNoPasteWindowLayout