Commit Graph

1319 Commits

Author SHA1 Message Date
Gilles Debunne
39be4bdd59 Merge "Support custom themes in TabHost." 2010-12-15 16:01:47 -08:00
Svetoslav Ganov
f02d4e36d7 Merge "Updating the light Date picker theme. Some UI fixes." 2010-12-15 15:13:49 -08:00
Svetoslav Ganov
99b539f632 Updating the light Date picker theme. Some UI fixes.
Change-Id: Ic83fdf93868bf86478a1173e82f24ac27f6301bc
2010-12-15 15:09:51 -08:00
Adam Cohen
c89d59ce18 Merge "Fix in StackView layout" 2010-12-15 13:18:33 -08:00
Adam Cohen
20a1b8f586 Fix in StackView layout
Change-Id: I09d9cf52a8301bad78754c7e00f2fd0c6c050045
2010-12-15 13:12:40 -08:00
Dianne Hackborn
a8a9ff20dc am b32ea255: am 7daaa98c: Merge "Fix issue #3149290: java.lang.RuntimeException: Unable to pause activity" into gingerbread
* commit 'b32ea25529589a77ede8faf278068157107ba897':
  Fix issue #3149290: java.lang.RuntimeException: Unable to pause activity
2010-12-15 13:00:52 -08:00
Dianne Hackborn
b32ea25529 am 7daaa98c: Merge "Fix issue #3149290: java.lang.RuntimeException: Unable to pause activity" into gingerbread
* commit '7daaa98c6531373a2a742c1360f0a2795de0619f':
  Fix issue #3149290: java.lang.RuntimeException: Unable to pause activity
2010-12-15 12:58:54 -08:00
Gilles Debunne
0e23ab7091 Support custom themes in TabHost.
CL 76118 introduced style customized tab layout. However, applications
which tabWidgetStyle has been overriden and does not inherit from
Widget.TabWidget will not be able to access tabLayout. Use the default
holo layout for these.

Bug 3235944

Change-Id: I5666c5ef2886060a2175a3d642b012cdaf0a1d50
2010-12-15 12:16:18 -08:00
Adam Cohen
80bc16f7df Merge "New stack visualization" 2010-12-15 11:20:43 -08:00
Dianne Hackborn
99441c45e4 Fix issue #3149290: java.lang.RuntimeException: Unable to pause activity
{com.android.settings/com.android.settings.applications.StorageUse}

AbsListView could call mAdapter.getItemId() if a save state happened
after the data changed but before a layout occurred.

Change-Id: Ica020971dc458dff79b56dd810733e217f4f7da6
2010-12-15 11:02:55 -08:00
Adam Cohen
026e121bc3 New stack visualization
Change-Id: I0c479f92a3682dfb917e00935365dd3e99456daf
2010-12-14 18:25:35 -08:00
Gilles Debunne
34961cc2e5 Reduced Overfling threshold after many different cefficient tries.
Change-Id: Ib655e73fc75a09c6379883871fabf90793a6cff5
2010-12-14 18:02:48 -08:00
Adam Powell
d7fe27c722 Merge "Fix bug 3274422 - Prevent pop-in of items in certain lists" 2010-12-14 18:01:36 -08:00
Adam Powell
bdccc2d3db Fix bug 3274422 - Prevent pop-in of items in certain lists
Change-Id: Ia4f253b1cb49fbed175d87f8d85fae838a99a614
2010-12-14 17:34:27 -08:00
Gilles Debunne
96e6b8bfc8 Remove line height attribute from TextView.
This attribute was introduced in HC and is only partially supported. It should
actually also be used by the layout to be meaningful.

Bug 3223987

Change-Id: Idb47be319a236326f7624fd865466356c19bc342
2010-12-14 15:11:49 -08:00
Jeff Brown
2e976df644 Expose split touch API on PopupWindow.
Already exposed the new window flags and layout parameters,
just forgot to make this API visible at the same time.

Bug: 3049580
Change-Id: If8dc3568eb2806fa21881c31b9f879d6045ca890
2010-12-14 13:56:58 -08:00
Gilles Debunne
ebd747ffad Merge "Heterogeneous comment for convertView in getView documentation" 2010-12-14 13:32:23 -08:00
Gilles Debunne
31d4894653 Removed no longer used longPressCallback in TextView
Change-Id: Iadac5579764ef14c2ec7a677c686a396cedc31fa
2010-12-14 11:53:52 -08:00
Gilles Debunne
e1aaf9d76e Heterogeneous comment for convertView in getView documentation
Change-Id: I28d6b93600d840e9b3e8bf74d0f14d93c4be4fd9
2010-12-14 11:48:15 -08:00
Gilles Debunne
2bc248b698 Off by one index error in word selection
Change-Id: Ia6b14b22cc5cf65a235bcdf7cbec48bd76f74460
2010-12-14 10:39:32 -08:00
Gilles Debunne
a3ae4a0656 Make TextView respect the maxLines attribute.
Bug 3186626

Restore some of the changes introduced in CL 78854.

Also added a few comments to the documentation.

Change-Id: I775be85c33ebe4a2384a40b21eec57f34fddcd33
2010-12-14 10:28:35 -08:00
Gilles Debunne
97d2dadffe Merge "setTextIsSelectable documentation updated." 2010-12-13 18:11:51 -08:00
Gilles Debunne
6f100f3895 setTextIsSelectable documentation updated.
Change-Id: Ib48c3b8bba606d8874b92fe56da99eab4f335056
2010-12-13 18:04:20 -08:00
Adam Powell
3cd0c571ea Fix bug 3281956 - Cherry-picked from GB
DO NOT MERGE Fix bug 3124899 - timeout in CTS test
ExpandableListViewBasicTest

A certain sequence of events could cause AbsListView to enter an
infinite event loop. Only report reaching a scroll boundary to the
overscroll code path if the Scroller wants to move further, not if
we're done moving.

Change-Id: Ib61897f619e83b28f08b91e82f2b901cb1739e1a
2010-12-13 18:04:11 -08:00
Adam Powell
128b6ba93d Fix bug 3280187 - ActionMode menu content not getting cleared properly when finishing
Fix bug 3279956 - FastScroller resource loading errors

Change-Id: I224b2b820636f88b09740a511aa0a9c480e54a2f
2010-12-13 17:06:03 -08:00
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