Commit Graph

1237 Commits

Author SHA1 Message Date
Gilles Debunne
8e06a63099 Selection in URL, email, phone, date, numbers selects all
Change-Id: Ide3603404f356564e294b7698b52c2d55e314db9
2010-11-30 12:51:24 -08:00
Gilles Debunne
d803cdef9a Selection handles no longer fade out.
This fade out was mainly introduced for forms with selectAllOnFocus fields, where
is hide some content. These no longer trigger selection mode and hence do not display
the handles.

Handles will be visible as long as selection mode goes on.

Change-Id: Ib8c2cc97308a91722f69aa0bb0caccb21d94c2c4
2010-11-30 12:11:15 -08:00
Gilles Debunne
d1dc72a081 Long press in empty space stops text selection
Bug 3240058

Change-Id: I888ee691a0fdc89895db43f9ed01acebf7a0b6d3
2010-11-30 10:51:43 -08:00
Gilles Debunne
458f4633b8 Merge "Dragging inside the same TextView is a move instead of a copy." 2010-11-30 10:07:41 -08:00
Adam Powell
12190b36a9 Add the Switch widget
Switch is hidden currently; it will be used in SystemUI and preferences.

Change-Id: I2cd8458783f938f00f5ee5e7a67fb5a90404797d
2010-11-29 19:14:58 -08:00
Gilles Debunne
4ae0f29d26 Dragging inside the same TextView is a move instead of a copy.
Change-Id: I0edbe601455a951354e8671b8bd4d7e6afd6f439
2010-11-29 19:01:09 -08:00
Romain Guy
6d95662f98 Put @ViewDebug.ExportedProperty back on TextView.mText
Change-Id: I68d36ebad07b4ad828c245e1d57ebe0effcc4239
2010-11-29 17:41:48 -08:00
Svetoslav Ganov
206316a61f New Number picker widget
Change-Id: I834e725b58682e7a48cc3f3302c93c57b35d4e27
2010-11-29 15:47:55 -08:00
Gilles Debunne
8df09a0906 SelectAllOnFocus switches to highlighted mode, not text selection mode
Change-Id: Ia0adf561f207e0a82d9588471823da7f5b2f1799
2010-11-29 14:57:12 -08:00
Gilles Debunne
f076eebd05 Restore isTextEditable() method meaning.
Change-Id: I52a4e71026396b27ed804d94e8373487a2645212
2010-11-29 11:42:55 -08:00
Gilles Debunne
0a2aa40363 Paste popup shows up after a delay on tap. Immediately if there is a recent copy/cut.
Change-Id: Ib13f7731eb9b25c39c1b962763b3d16310fe2923
2010-11-29 11:23:24 -08:00
Gilles Debunne
2a7f346ff1 Handle hiding timer reset on every move.
updatePosition is the centralized place where this should happen.

Change-Id: If4aab404ab0f3988af96b8d2cb1b41f39f4afa50
2010-11-24 16:56:24 -08:00
Gilles Debunne
c4440f039e Lazy creation of selection and insertion handles.
Change-Id: I960f6988e8f4c6f933a40fca7dc860e58a6b67d3
2010-11-24 16:24:47 -08:00
Mindy Pereira
4e30d89ced Per designers, update the algorithm for when effect is clipped or stretched.
New algo is:
1) if view width < MIN_WIDTH (currently 300px), clip glow and edge to fit
2) else stretch glow and edge to fill width
3) make alpha and height of edge and glow 30% "more intense"

Change-Id: I8f121bb165a8fb835bc33950dbedd1bc80c5df65
2010-11-24 16:09:03 -08:00
Gilles Debunne
2880294cc6 Lazily create the paste popup window.
Change-Id: I271a790bd652cdcdc221896ede9f99858a24cc7a
2010-11-24 14:16:14 -08:00
Gilles Debunne
9948ad7b37 Long press in empty space moves cursor and shows Paste affordance.
Change-Id: I487e9028201a90da76dff5390a64d2d57e7723ea
2010-11-24 14:00:46 -08:00
Gilles Debunne
e587d838e9 Comments on lazy controllers initialization.
Also a couple of bug fixes where the field value was used instead of the
get method().

Change-Id: Ia2c63158febc136065a6e12755c88e6d23ce6cc1
2010-11-24 13:48:24 -08:00
Gilles Debunne
af150b5bbd Merge "Long press starts a new selection if one is already started." 2010-11-23 17:29:17 -08:00
Gilles Debunne
710a910e73 Long press starts a new selection if one is already started.
Change-Id: Ide525ff0021cf145bb5d2b8db2d09b7b7909289b
2010-11-23 17:09:15 -08:00
Brad Fitzpatrick
ce81f3a955 StrictMode.Span annotations for ScrollView.
Between the animation system, ListView, and this, we can now account
for the large majority of animations in-flight at any point and annotate
StrictMode violations accordingly.

Note that StrictMode.Span goes out of its way to not allocate memory
and is very light-weight, especially on user builds where it's a
no-op.

I've tested this with the LOG_V debugging in StrictMode and I think
I've gotten all the entry/exit cases of ScrollView's animations.  At
least, I'm not able to get it out-of-sync at least, even with
orientation changes during scroll/fling, etc.  It's possible I missed
a path, but that should show up as excessive false positives during
dropbox uploads if so.

Change-Id: I3b0545111a775d9fa8e171f2a190031f1b56c4c0
2010-11-23 12:44:08 -08:00
Mindy Pereira
a5531d784b Update edge and glow rendering to match new specs.
Change-Id: Id2ad0ff4fa78617cb79475952e9ce561ee8fec10
2010-11-23 11:12:20 -08:00
Adam Powell
637d337b58 Merge overscrolling from gingerbread.
Change-Id: I3eb4413261b38ddd8c609d6153bdfd4ae46c6a0f
2010-11-23 09:30:10 -08:00
Leon Scroggins
1ca5626351 Alter the Layout of WebTextView to match webkit.
Bug:3085564

In order to treat the selection handles properly, the text in
WebTextView needs to line up with the text in webkit.  Use the
line spacing style, or the paint if none provided, to determine
the spacing for WebTextView's Layout.  When no line spacing is
provided, use the floating point values of ascent and descent,
rather than the rounded result, to determine spacing.

Requires a change in external/webkit:
https://android-git.corp.google.com/g/#change,80641

Change-Id: I51081835e128a0e938028c7c7aeb5111aa5f072c
2010-11-22 09:37:57 -05:00
Erik
b43d6a30ad b/3215774 Fix scrollMode notifications
When transitioning from a fling to a touch the mode was being set
to idle instead of ending up in scroll. This corrects the
notifications to get sent in the correct order.

Change-Id: Ideed6e4064b2be62788307f4232015fa88e101b4
2010-11-19 16:42:43 -08:00
Gilles Debunne
77b25a34a2 Keyboard is not displayed when selecting read-only text.
Change-Id: Id8d1fb7ebd85a36a1e587b4e2bbbabf82aa1bdd7
2010-11-19 13:31:45 -08:00
Brad Fitzpatrick
5e9d94505b Fix AbsListView StrictMode.Span end point on flings.
Noticed after logs showed a ton of false positives, I went back and
looked at the history.  During the review of the previous CL, I
accidentally moved the finish() of the fling animation tracking inside
the PROFILE_FLINGING block, which is normally off.

Re-tested this CL with StrictMode debugging enabled and it now always
propertly resets to 0 animations in flight when no animations are
running.

Change-Id: Ie9746df36e2ec3f82679b20e91e3d93c05b863d4
2010-11-19 12:03:22 -08:00
Kenny Root
9c950b41c5 Merge "Use different version of CLDR data in DatePicker" 2010-11-19 09:11:42 -08:00
Adam Cohen
9c295482dd Fixing issue #3200503
-StackView was using the wrong view to draw the click feedback

Change-Id: Ibb0a24af2d740fd1e3f6a6345518d730b66673f4
2010-11-18 15:29:03 -08:00
Jeff Brown
6b53e8daa6 Added support for full PC-style keyboards.
BREAKING CHANGE: Redesigned the key character map format to
accomodate full keyboards with more comprehensive suite of modifiers.
Old key character maps will not work anymore and must be updated.
The new format is plain text only and it not compiled to a binary
file (so the "kcm" tool will be removed in a subsequent check-in).

Added FULL keyboard type to support full PC-style keyboards.

Added SPECIAL_FUNCTION keyboard type to support special function
keypads that do not have any printable keys suitable for typing
and only have keys like HOME and POWER

Added a special VIRTUAL_KEYBOARD device id convention that maps
to a virtual keyboard with a fixed known layout.  This is designed
to work around issues injecting input events on devices whose
built-in keyboard does not have a useful key character map (ie.
when the built-in keyboard is a special function keyboard only.)

Modified several places where events were being synthesized
to use the virtual keyboard.

Removed support for the "qwerty" default layout.
The new default layout is "Generic".  For the most part "qwerty"
was being used as a backstop in case the built-in keyboard did
not have a key character map (probably because it was a special
function keypad) and the framework needed to be able to inject
key events anyways.  The latter issue is resolved by using the
special VIRTUAL_KEYBOARD device instead of BUILT_IN_KEYBOARD.

Added the concept of a key modifier behavior so that
MetaKeyKeyListener can distinguish between keyboards that use
chorded vs. toggled modifiers.

Wrote more robust key layout and key character map parsers
to enable support for new keyboard features and user installable
key maps.

Fixed a bug in InputReader generating key ups when keys
are released out of sequence.

Updated tons of documentation.

Currently QwertyKeyListener is being used for full keyboards
with autotext and capitalization disabled.  This mostly works
but causes some problems with character pickers, etc.
These issues will be resolved in subsequent changes.

Change-Id: Ica48f6097a551141c215bc0d2c6f7b3fb634d354
2010-11-18 09:49:03 -08:00
Gilles Debunne
04cdb78c6a New spline physics for list fling motion.
Change-Id: I72216acb29f1cd475682141701e1f2e56f52d527
2010-11-17 17:22:01 -08:00
Adam Powell
8c3e0fc84f Fix bug 3207067 - adjust AbsListView content pop-in when clipToPadding=false
Known issue: Dividers are not drawn on top. This should be handled
once overscroll is merged in.

Change-Id: I778703601183f919e7c4345cfc4af6036b4ada4e
2010-11-17 16:01:37 -08:00
Gilles Debunne
d348bb4fef Changes to scrolling physics
Spline curve for Scroller fling motion (debunne)

Flywheel motion for AbsListView

Change-Id: Ic1f226878745ff4c302dc6bd0752868fa182dd7b
2010-11-17 12:16:09 -08:00
Gilles Debunne
4a0d0b34b2 Fix for disappearing background in buttons.
Change-Id: I7c7058ee8a292e73c25ba8c3e8d46899b7296c1e
2010-11-16 18:21:29 -08:00
Brad Fitzpatrick
aaf12770b8 Merge "Annotate ListView with StrictMode.Span" 2010-11-16 17:27:43 -08:00
Brad Fitzpatrick
1cc13b6d1c Annotate ListView with StrictMode.Span
Change-Id: Ibee1bfa73c85dac2e8103eb5900f0609cbb30ee7
2010-11-16 17:18:36 -08:00
Patrick Dubroy
eb4e475d94 Merge "Reduce amount of garbage created when flipping StackViews" 2010-11-16 17:02:29 -08:00
Svetoslav Ganov
1d1e1105ad 3049240 TalkBack on Accessibility Options reads out passwords entered in during Lock screen
Change-Id: I70b29611d798df1da10e0e950154ef5f49aba7c5
2010-11-16 16:44:03 -08:00
Patrick Dubroy
e80202d5c3 Reduce amount of garbage created when flipping StackViews 2010-11-16 16:23:44 -08:00
Gilles Debunne
c50f1505aa Merge "Multiline EditText have top and bottom brackets to differentiate from single line." 2010-11-16 14:11:17 -08:00
Adam Powell
0046bd8ea6 Fix bug 3192412 - ListView doesn't reportScrollStateChange properly
for programmatic scrolls

Allow for onScrollStateChanged implementations that end up changing
scroll state again.

Change-Id: I53105f5be708bacc0d3ec8e76ba1cc22f4131467
2010-11-16 13:28:27 -08:00
Gilles Debunne
fe4d5defd0 Multiline EditText have top and bottom brackets to differentiate from single line.
Change-Id: Iab6da75e7a823018221399c0b03dd47f7f768f21
2010-11-16 12:01:16 -08:00
Gilles Debunne
9947b32185 Merge "Cherry-pick Ib76a95d9e7669016cf11b8b0add8843b438068ea from gingerbread" 2010-11-15 15:23:01 -08:00
Adam Powell
965b9699f1 Cherry-pick Ib76a95d9e7669016cf11b8b0add8843b438068ea from gingerbread
DO NOT MERGE Fix bug 3121030 - Text handles erroneously appear over
extract mode IME window

Make the SelectionModifierCursorController track its show/hide state
more accurately in the presence of an extract mode IME.

Lazily initialize CursorControllers so that we don't end up creating
them for various TextViews where they are not needed.

Change-Id: I3dce7535db3a1bd25ed9899406de47b00058e665
2010-11-15 15:21:15 -08:00
Kenny Root
dddda8d188 Use different version of CLDR data in DatePicker
The ICU CLDR data doesn't use the month abbreviations that are
appropriate for the DatePicker, so use the framework copy of the CLDR
data.

Bug: 2641810
Change-Id: Ic0f7b461b43c76dfa3f8b73a9479b79df230d7bd
2010-11-15 14:38:51 -08:00
Joe Onorato
64f1163084 Merge "The beginnings of the new status bar." 2010-11-15 12:23:51 -08:00
Joe Onorato
fd52b18d9b The beginnings of the new status bar.
There is a lot of rough stuff still, but most of the functionality is here again.

Change-Id: I4b1241e61270f1434e798481afa83634233ee670
2010-11-15 11:52:33 -08:00
Adam Cohen
ee4a7d8682 Merge "Fix for Issue: 3196583" 2010-11-15 11:09:59 -08:00
Adam Cohen
490127df19 Fix for Issue: 3196583
Change-Id: I7878cf41274d4f5885d6179f3072a3be05386075
2010-11-15 11:08:03 -08:00
Adam Cohen
c86b5a6af9 Merge "Adding click feedback to StackView" 2010-11-15 10:05:58 -08:00
Adam Powell
6af97e1c20 Revised assets for progress bars and indeterminate progress spinners.
Add support in ActionBar for activity-wide progress APIs.

Add ability for progress bars to set a target framerate rather than
the 5fps previously used.

Clean up some more dialog layouts using hardcoded styles rather than
theme attributes.

Change-Id: I8e88c7595e27c0b6f7829b598f2b084ac8501ae3
2010-11-12 19:06:40 -08:00