Commit Graph

1294 Commits

Author SHA1 Message Date
Wink Saville
086c0611d3 Fix build.
This change, I80dbccebea11544595935077463ad7737c3392e9, broke the build
I undeprecated two old OverScroller constructors and hid the new one.

Change-Id: I257ebbc6bb432c6487d63ff03725146dd225a8e2
2010-12-11 09:01:31 -08:00
Gilles Debunne
512b54cf9e Merge "TextView's runnable are stopped when the View is detached." 2010-12-10 17:19:06 -08:00
Gilles Debunne
406d09b8a7 Merge "Modified OverScroller curves" 2010-12-10 17:18:37 -08:00
Gilles Debunne
7eeba5fad5 TextView's runnable are stopped when the View is detached.
Stopping all Runnable thread that would otherwise keep a reference on the context,
thus preventing the activity to be recycled.

All Runnable are now also lazily created.

Change-Id: Idb93603c20cb3e847ae56eb842c64af6c5b82523
2010-12-10 16:56:20 -08:00
Adam Powell
05decf6d62 Merge "Fix a bug where the fast scroll track would be positioned incorrectly." 2010-12-10 16:33:47 -08:00
Adam Powell
2c6196aa55 Fix a bug where the fast scroll track would be positioned
incorrectly.

Make fast scroll theme attributes public.

Fix a bug where always-visible fast scrollers wouldn't appear on small
lists.

Change-Id: I377adf63d2fe88478f77b0b04466c6ae88557efe
2010-12-10 16:31:13 -08:00
Gilles Debunne
c35a829b10 Modified OverScroller curves
When OverFlinged, the scroller goes back to the edge using a spline
instead of a parabolic curve. This ensures that the final velocity of
this movement is null, thus removing the visual discontinuity that can
be observed with the current version.

Bouncing coefficient is deprecated. Changed doc accordingly.

New more expressive spline tension tuning coefficients.
These were tuned to match the one used before the refactoring of CL 81532.

Change-Id: I80dbccebea11544595935077463ad7737c3392e9
2010-12-10 16:04:06 -08:00
Gilles Debunne
aa85a4c8b7 A long press on the insertion handles triggers the selection.
The distance threshold has to be tuned before this feature can be validated.

Change-Id: I233ebc4a1d2d495279818d34496e8b17bbd76752
2010-12-10 15:19:21 -08:00
Gilles Debunne
89d7787454 Merge "Selecting text from a punctuation sign selects previous word." 2010-12-10 13:50:51 -08:00
Adam Powell
39fc4a3c7b Merge "Fix bug 3257463 - Yes, we SHOULD put the child in the recycler." 2010-12-10 13:30:37 -08:00
Adam Powell
22e92e5557 Fix bug 3257463 - Yes, we SHOULD put the child in the recycler.
This caused an issue where a LinearLayout measuring for the baseline
could cause the fake view for position 0 to be associated with a
different position in the recycler. It gets used later with the wrong
data; bad times.

Change-Id: If273894d46185a550f4efd9f11ef83e0113f0a3c
2010-12-10 13:20:32 -08:00
Gilles Debunne
07a11f4967 Selecting text from a punctuation sign selects previous word.
Cherry picked from a revert in https://android-git.corp.google.com/g/#change,82252

Change-Id: I141bbff2a0f9a8ab40f10c59fc1280b94b38e4b6
2010-12-10 13:14:20 -08:00
Gilles Debunne
12d91ce8e3 Added visual feedback to text correction.
Change-Id: Id2b85b7b649a59a2666157c7ff540858b1ad403c
2010-12-10 11:51:30 -08:00
Gilles Debunne
cf9cf2f40e New API in InputConnection to signal IME's text correction.
Scafolding so that the IME team can start working on this feature.

The animation part in the TextView is missing.

Change-Id: I8225538564370fba1500e3539742a8ab79bdd199
2010-12-10 11:31:59 -08:00
Adam Powell
16bb80af66 Fix typo
Change-Id: I59e7009d054e376e4b48bcabb4a7343d0cab4bd1
2010-12-09 23:30:50 -08:00
Adam Powell
20232d0f7c Holo scrollbars and related tweaks.
Added setting for placing vertical scrollbars on left or right.

Added setting for showing fast scroll persistently.

Fixed a bug where inset padding was miscalculated for horizontal scroll bars.

Fixed a bug where padded ListViews would draw fading edges incorrectly

Change-Id: I1f8499895272d42598b4b3fd3375301115def461
2010-12-09 22:47:20 -08:00
Mindy Pereira
596913ba04 Merge "Make sure bottom overscroll feedback takes scrollY into account." 2010-12-09 10:55:39 -08:00
Mindy Pereira
e1be66cdbc Make sure bottom overscroll feedback takes scrollY into account.
This fixes an issue where the overscroll feedback was rendering
several pixels above the bottom of the list on a flick.

Change-Id: I66160d1b72c04f0273f063910eff995e2b2569f0
2010-12-09 10:23:59 -08:00
Romain Guy
97684ed8dd Merge "bug_3259956 and bug_2166704" 2010-12-08 16:50:57 -08:00
Gilles Debunne
f7ae525855 SelectAllOnFocus text fields do not display the insertion handle when focused.
Change-Id: Ieb0dfe37498a339a781098134f4a0dd7f40193ec
2010-12-08 16:46:46 -08:00
Svetoslav Ganov
a911d4a2b1 bug_3259956 and bug_2166704
Change-Id: I71b4cc3c1111e7a4e78fb276d54a291c22fb2752
2010-12-08 16:11:30 -08:00
Joe Onorato
1c3e3c78de Merge "Make setDrawable work after initialization has occurred." 2010-12-08 15:50:52 -08:00
Joe Onorato
aa07263463 Make setDrawable work after initialization has occurred.
Change-Id: Id040f69f2fc3402013229114fc3c1b0730eef579
2010-12-08 15:48:06 -08:00
Winson Chung
882754e8cc Merge "Modified GridView to report when to small" 2010-12-08 15:14:37 -08:00
Adam Lesinski
edd9508aba Modified GridView to report when to small
-With views being able to set MEASURED_STATE_TOO_SMALL
the GridView should do so when the determining its
column widths/stretch modes

Change-Id: Ib8433ffa9e489467ffe7ed8169d4e23d69658c6c
2010-12-08 12:15:33 -08:00
Svetoslav Ganov
4bfd794475 Updated the NumberPicker for exposing it into the SDK
Change-Id: I3bd48d0210da8a202b6ff60deecb5d7776f1b73b
2010-12-07 17:59:31 -08:00
Mindy Pereira
1a94f3b582 Merge "Make horizotnalscrollview and scrollview edgeglows match the new algorithm." 2010-12-07 16:10:57 -08:00
Mindy Pereira
b1297f7635 Make horizotnalscrollview and scrollview edgeglows match the new algorithm.
Instead of going past the left and right sides, the glow now
stretches just to the width of the edge and stops.
For horizontalscrollview, instead of going past the top and bottom,
now stretches just to the height and stops.
Change-Id: I0cc9bdef3ab263b16dd32e088c6b64ff5a8809c8
2010-12-07 15:33:51 -08:00
Svetoslav Ganov
3119fd426d Fixing the build breakage
Change-Id: I8589e5fcdeec127c84d2b419f6ef44d7011a5a6b
2010-12-07 15:15:34 -08:00
Gilles Debunne
6da7e935f9 No NPE in Browser when pasting in WebTextView.
Bug 3258790

Change-Id: I25d67ee85babb1bb3e4d05ea7b4e4d3756c60411
2010-12-07 14:35:47 -08:00
Svetoslav Ganov
50f34d14f6 Adding DatePciker widget based on the Calednar team code. Updated DatePciker and DatePickerDialog as the second part of the Time/Date pciker refresh feature.
Change-Id: Id32c614bcd799463ca33bf08fb7d5cf44f8326a6
2010-12-07 13:34:23 -08:00
Gilles Debunne
f48e83b328 Fix for Blink in TextView.
The callback is removed when the window is detached. Prevents weak references to
the TextView from being kept.

No longer created for non editable texts (!).

Hiding the cursor handle when cursor is hidden.

Change-Id: Ic92f6cfc5b6ef6460f1edc6b9a564e4153d9c40f
2010-12-07 12:13:51 -08:00
Adam Powell
5e0ae67656 Fix bug 3259292 - Make FrameLayout respect margins without a gravity setting
Change-Id: I94ebf4064e64daaa547263adbdce86bfb836d55d
2010-12-07 11:26:34 -08:00
Amith Yamasani
475593e249 Merge "Prevent SearchView dropdown from showing up when SearchView is hidden." 2010-12-07 08:49:51 -08:00
Adam Powell
cf0357639e Clean up button bar styles
Change-Id: I65b6600f72b92db024f83b63d3ea91abc1cbb96c
2010-12-06 17:23:26 -08:00
Amith Yamasani
acd8d2d2e7 Prevent SearchView dropdown from showing up when SearchView is hidden.
Bug: 3257833
2010-12-06 15:50:23 -08:00
Jean-Baptiste Queru
f0ef665299 Merge from gingerbread-plus-aosp
Change-Id: I154071687cdd51c28bb377ea3f1e818e96909b56
2010-12-06 14:31:25 -08:00
Gilles Debunne
1cafde04c5 Moved Paste popup window up in TextView
Bug 3228601

A tap on the insertion handle displays the paste popup immediately.
Tapping again hides the popup.
Bug 3248651

Change-Id: I5a501b3ebe36e23cbbf0f1b3d588884c6ecd1d56
2010-12-06 12:37:24 -08:00
Jean-Baptiste Queru
005dd44b75 am 864b1e00: Merge "NumberPicker: Set formatter local value to US."
* commit '864b1e007dc741ec10c23cabc0271f97a5b8c598':
  NumberPicker: Set formatter local value to US.
2010-12-06 11:03:11 -08:00
Gilles Debunne
cb60e2acf6 Merge "Made TextView use the new localState API for drag info" 2010-12-06 10:22:12 -08:00
Chen Libao
f04f7ae73b NumberPicker: Set formatter local value to US.
As the Arabic language formatter would make number "1,2,3" to Arabic
language word means one,two,three, NumberPicker won't like to show
any thing other than numbers, add local settings to US, make the
number 1,2,3

Change-Id: If2d161ac4133f6c9c6e1ec284d6d2fbf01855fa0
2010-12-06 10:32:53 +01:00
Adam Powell
3f7f7ac30a Add dividers to action bar navigation. Lighter dividers for holo themes.
Change-Id: I879dbd815a891fe5db20678b674a9cee63a5e1ae
2010-12-05 16:44:38 -08:00
Adam Powell
da13dbae6f Fix bug 3214215 - ListView should stay scrolled to the bottom in transcript mode after a resize
Change-Id: Iaccc61d9b38e7add44216f3e39b196623773af91
2010-12-05 13:47:23 -08:00
Adam Cohen
26e30bb7fe Preventing StackView auto-advance during / near interaction
Change-Id: Ieea5492933b87f1eb30703a23c90f53869f92c20
2010-12-03 18:36:57 -08:00
Gilles Debunne
aaa8479a97 Made TextView use the new localState API for drag info
Change-Id: I5448bd45d20fab5a541382e101556f5c9d8ea1e4
2010-12-03 16:10:26 -08:00
Amith Yamasani
4838548209 Added to SearchView : getQuery() and setOnSearchClickListener()
Bug: 3083393
Bug: 3172295
2010-12-03 15:21:07 -08:00
Amith Yamasani
968ec93839 Use SearchView in SearchDialog for legacy apps using the old model.
Bug: 3140925

Removed all the code from SearchDialog that is already in SearchView
and moved more stuff into SearchView.

SearchDialog layout changed to be more like a Holo.Light themed action mode.
Search field is right justified and limited to 500dip.

Zero query dropdown added to SearchView (causing some problems with Gmail,
but that may be an existing issue that's only now showing up due to this change)

Holo.Light search views assets still need to be updated, as the contrast is too low.
2010-12-03 11:18:25 -08:00
Dianne Hackborn
189ee18d6c Implement smarter sizing of WRAP_CONTENT windows.
This extends the view hierarchy's measure pass to allow view to
propagate up to their parent additional information besides just
their measured size.  They can now report that their measured width
and/or height should be larger than the size their parent is
limiting them to (even though by definition they need to contrain
their reported measurements to the limits imposed by the parent).

ViewRoot uses this information to determine if it should remeasure
the window with a larger size limit to try to make it fit.

Change-Id: I90af3b7a8ec45d0a5c003fb009857025209d83eb
2010-12-03 10:46:18 -08:00
Joe Onorato
2e585f7e22 Make AbsSeekBar support having setThumb called after initialization is done.
Change-Id: Ic7c2e1a4ec067f50a95aaff924bbd7bc453a575f
2010-12-02 16:52:17 -08:00
Gilles Debunne
f4dceb1946 Customized text selection action mode.
Refactored to use a custom Callback instance instead.

This instance can be shared by different TextView, which no longer have to
be overloaded.

Change-Id: I4749905d8e2057dab2b3ded62bd7c388d13d4e57
2010-12-02 10:24:03 -08:00