Commit Graph

1343 Commits

Author SHA1 Message Date
Adam Powell
50f784cf2d Measure spinner items for sizing the dropdown view.
Only a limited window of items will be measured around the currently
selected item.

Change-Id: Ie0431948fdd564fa4bbeb82dede9e2abebbaee55
2010-12-19 16:16:43 -08:00
Adam Cohen
fb1b2317ab Merge "Fixing leak in StackView" 2010-12-17 19:46:46 -08:00
Adam Cohen
c0b53be0c9 Fixing leak in StackView
Change-Id: I2a5f340906c38f87a4b280bedcd47624351da467
2010-12-17 19:32:43 -08:00
Jeff Brown
4e6319b73c Add initial support for TAB navigation.
Bug: 3286652
Change-Id: I813a0318b3b8d9c9bc791ea6a2427be11c08de00
2010-12-17 18:51:04 -08:00
Gilles Debunne
202ef9e851 Merge "AutoLink identified spans are selected when long pressed." 2010-12-17 17:42:32 -08:00
Gilles Debunne
4dfe08632f AutoLink identified spans are selected when long pressed.
Do not rely on standard word detection for these (which does not work because
of / or . in URL or - in phone numbers).

Various other bug fixes for text selection with autolinks.

Change-Id: I482e99efa980281086ce761b27b3a36579e7cf76
2010-12-17 16:32:19 -08:00
Svetoslav Ganov
9e780c66e9 Merge "Bug 3191746. atePicker TimePicker: Dark theme is used in a Light theme app" 2010-12-17 16:32:07 -08:00
Svetoslav Ganov
bf80562d22 Bug 3191746. atePicker TimePicker: Dark theme is used in a Light theme app
Change-Id: I20d0cca3b78af9db80854a57c88d6cab3b00f555
2010-12-17 16:00:18 -08:00
Gilles Debunne
fdcd4084f3 Merge "Made text selectable even when autolinks are activated." 2010-12-17 15:48:43 -08:00
Svetoslav Ganov
6ad986419d Merge "Bug 3293819. Timepicker is showing single digit for 0, 1, 2 minutes (the rest are fine)" 2010-12-17 15:45:41 -08:00
Svetoslav Ganov
2b9484f453 Bug 3293819. Timepicker is showing single digit for 0, 1, 2 minutes (the rest are fine)
Change-Id: I55c50857740fc1210c45e9b7fc8905ec2266ed8c
2010-12-17 15:42:21 -08:00
Gilles Debunne
cbcb345ccd Made text selectable even when autolinks are activated.
Refactor for canSelectText.

Moved test from onCreate to startTextSelection.

Restored setFocusableInTouchMode needed to start a selection in touch mode.

Bug 3296490

Change-Id: I5c0c31dbebed79fd1f9d80f930cba1019d74f710
2010-12-17 15:31:02 -08:00
Adam Cohen
5eb40a85fb Merge "Addressing issues associated RemoteViewsAdapter's service crashes / disconnects" 2010-12-17 12:19:46 -08:00
Adam Cohen
fb60386b46 Addressing issues associated RemoteViewsAdapter's service crashes / disconnects
-See issue: 3052667

Change-Id: I95f1cac3defeadc38ac75453d9d59cd1b3cbcc83
2010-12-17 12:09:50 -08:00
Gilles Debunne
73d032eea9 Merge "Removed focusableInTouchMode flag for selectable text." 2010-12-17 11:31:00 -08:00
Chet Haase
d4bbcbd2dd Merge "Fix for TimePicker not redrawing itself." 2010-12-17 11:30:17 -08:00
Gilles Debunne
e12f99984e Removed focusableInTouchMode flag for selectable text.
Change-Id: I7aaa08328cc22d6cd920b3bc2661de79c5fb1402
2010-12-17 11:04:55 -08:00
Chet Haase
c75ec3324e Fix for TimePicker not redrawing itself.
The problem was that NumberPicker override View.draw(), but did not
call the superclass version of the method in some situations. This
resulted in the DIRTY flag for the view not getting cleared properly,
and future invalidations not propagating correctly.

The fix was to call super.draw() from NumberPicker.draw().

Change-Id: Ic17215dea86d54b77375494ada124dd6970e3ad6
2010-12-17 07:44:30 -08:00
Dianne Hackborn
c91893511d Fix issue #3272082: Contacts: when going back from edit view,
list UI is not ready yet

This involves some reworking of Loaders.

Loaders, in particular CursorLoader, are now expected to retain
their current data after being stopped.  This allows applications
to keep that data across onStop() -> onStart(), so when the user
returns to the app it doesn't have to wait for the data to reload
and thus cause flicker.

This includes various API changes to better reflect the new
semantics, plus a new LoaderCallbacks method to tell the application
when it is actually time to stop their use of a loader's data.

Note this is somewhat half-done, to help checking in the extensive
application changes that are required without causing build breakage.

Change-Id: Ib4b3bf8185a6da46e7f06ca125521d65e2e380a1
2010-12-16 20:09:13 -08:00
Amith Yamasani
73e00df15e Fix SearchView collapse on text input.
Bug: 3291919
Change-Id: I2e510c3f8c4fa520dd100e722896f725ef70b79e
2010-12-16 16:31:29 -08:00
Adam Cohen
36f43908ae Changing StackView layout to space items differently
Change-Id: Ia46d28312321b338b4a3aec1df9fa00c645f5b73
2010-12-16 00:24:58 -08:00
Amith Yamasani
4aedb39a49 New SearchView assets and close-button behavior change.
Hide the close button in SearchView when there's no text in it and it's not iconified by default.

Bug: 3275206

Adds Holo.Light theme and fixes the query refinement icon.
2010-12-15 20:09:33 -08:00
Gilles Debunne
066460f3ba Fix for testAccessTransformationMethod cts test.
Single line textView should impose their number of lines and their
transformation method.

Bug 3289818

Change-Id: If1f1252ded1250e2aff85f1c615cc2e17026ba1d
2010-12-15 18:28:05 -08:00
Gilles Debunne
33a8cfb0af Show keyboard when user starts a text selection.
Bug 3266297

Change-Id: I1985ab52ae867c4a6c92279986cd6d0654614118
2010-12-15 16:52:51 -08:00
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