Commit Graph

1572 Commits

Author SHA1 Message Date
Adam Cohen
4f67440752 Merge "StackView rendering fix for non-hardware accelerated apps and hardware layers" 2011-02-16 17:12:25 -08:00
Adam Powell
348e69cfab Fix bug 3413800 - Revise AutoCompleteTextView dropdown behavior
Be more conservative with when we let an AutoCompleteTextView's
dropdown box of completion suggestions cover the IME.

Disable the expand-when-touched behavior of the dropdown list when
more than 3 items can be seen at a time without it.

Don't let a ListPopupWindow that is expanding in response to touch
scroll the anchor view within its parent and slide the dropdown out
from under the user's finger.

Change-Id: I009accfd4e841c9a5e1072735d8a0b067a0bc06a
2011-02-16 16:55:45 -08:00
Adam Cohen
1ff65d105a StackView rendering fix for non-hardware accelerated apps and hardware layers
Change-Id: I34a0362cd37c6b95a0b3196302b6510b0f7ad34e
2011-02-16 14:04:09 -08:00
Scott Main
55cdc0c904 am 0ab1b326: am 13033ea5: docs: fix misc broken links
* commit '0ab1b326c72afb2bd7798462fcdd8e5d3b440fd2':
  docs: fix misc broken links
2011-02-15 20:15:00 -08:00
Scott Main
13033ea527 docs: fix misc broken links
Change-Id: Id7d0ee36398aca452ceb2c3d15982397f58a06c6
2011-02-15 16:00:37 -08:00
Adam Powell
99c4032fb3 Merge "Fix bug 3362273 - Make overscroll glow appear within padding region" 2011-02-15 15:07:55 -08:00
Adam Powell
7d86378b0c Fix bug 3362273 - Make overscroll glow appear within padding region
Change-Id: I3c6513ada6bdd192c83f3ff59a2c85717156de22
2011-02-15 15:05:03 -08:00
Amith Yamasani
5101e1ed51 Merge "Don't change keyboard state in setIconifiedByDefault." 2011-02-15 13:06:20 -08:00
Amith Yamasani
1b64c3b5fe Don't change keyboard state in setIconifiedByDefault.
Bug: 3225887
Bug: 3453253 (possibly)

Since some apps call setIconifiedByDefault(false) at the initialization step,
it isn't a good idea to open/close the keyboard during this call. Apps
can call setIconified(false) instead to invoke the keyboard.

Change-Id: I9d5d08b74055a3e99053d647df0cd4c7953bae80
2011-02-15 12:02:45 -08:00
Adam Powell
5fd8dd01a7 Merge "Fix some bugs with MenuPopupHelper and ListPopupWindow" 2011-02-15 11:16:01 -08:00
Gilles Debunne
05cc6dbf70 Merge "Text insertion cursor is now defined by a Drawable." 2011-02-15 10:41:30 -08:00
Adam Powell
ca51e8788a Fix some bugs with MenuPopupHelper and ListPopupWindow
Clean up handling of a few conditions in MenuPopupHelper that the
monkeys manage to trigger around the use of ViewTreeObserver. (bug
3443819, bug 3312949)

Fix a bug where a stale handler message could cause a ListPopupWindow
to reopen itself after being dismissed. (bug 3453607)

Change-Id: I488014767ccee785500862a2572beb35901d173b
2011-02-14 19:54:29 -08:00
Gilles Debunne
f75c97e023 Text insertion cursor is now defined by a Drawable.
Bug 3261766

If defined, the drawable is used instead of directly drawing a 1 pixel
line. This makes the cursor more fancy and more visible.

The drawable is currently clipped by the TextView's limits, which is
currently visible on the left when the cursor is at the first position.
To solve this issue properly, we would need to propagate a do-not-clip
up in the hierarchy.

Change-Id: I99f6001048eed14104994acf6bab942dda8eb38e
2011-02-14 18:29:39 -08:00
Romain Guy
cfe8903441 Merge "Gracefully handle drawing caches allocation failure. Bug #3431451" 2011-02-14 16:34:15 -08:00
Romain Guy
0211a0a10d Gracefully handle drawing caches allocation failure.
Bug #3431451

This bug was causing ListView to not render properly when showing an item
larger than the maximum drawing cache size. ListView relies on the drawing
cache to correctly mask all the background pixels. However, if the cache
is not properly created, the background will show through even though
ListView.isOpaque() == true. This change detects this case and falls
back to the default non opaque behavior.

Change-Id: I30a45e7a03fb7ebb2b12f0e85c075c2901954c44
2011-02-14 16:34:59 -08:00
Adam Cohen
0b96a57c85 Making AdapaterViewAnimator setDisplayedChild remotable
Change-Id: Idee91f457e1d4316feb077aaa949baa54eca6ab1
2011-02-14 11:37:26 -08:00
Adam Cohen
f3032e9d9d Merge "Fixing a bug in RemoteViewsAdapter where cached items weren't being marked as requested" 2011-02-11 18:25:43 -08:00
Adam Cohen
aeb66ca473 Fixing a bug in RemoteViewsAdapter where cached items weren't being marked as requested
Change-Id: I1275cbbcd949d27c1c7444a9fb7a684ae7d7eb25
2011-02-11 13:33:41 -08:00
Chih-Chung Chang
d4c5b7651f Merge "Fix a bug that the condition for play/pause was reversed." 2011-02-10 19:23:52 -08:00
Adam Powell
96bad13901 Merge "Fix bug 3440372 - Spinner measurement issues with new rules" 2011-02-10 12:07:38 -08:00
Adam Powell
b70c727b2e Fix bug 3440372 - Spinner measurement issues with new rules
Change-Id: I3633239dc42277eb6447cf7f0907f35f4b45e873
2011-02-10 12:04:59 -08:00
Chih-Chung Chang
d7db70123f Fix a bug that the condition for play/pause was reversed.
Change-Id: I462ca5b910de98a875d7f54b4a937176f88474d0
2011-02-10 18:17:38 +08:00
Gilles Debunne
711734a2f8 AutoComplete list does not hide the IME when it re-appears.
Bug 3415891

With the current behavior, as soon as the list is expanded by
'long' pressing on or scrolling its content, it will always further appear
in its long state, thus hiding the IME.

This fix changes this behavior so that the default state is always
compact, not hiding the IME, and an explicit expansion
is always required.

Also fixes a bug in ListPopupWindow that prevented the timer that
expands the list from being started.

Change-Id: I896e92d54961769c10b276c36f6510e91ff096a2
2011-02-09 16:56:13 -08:00
Gilles Debunne
a4a5758b5f The tab key completes text in AutoCompleteTextView.
Bug 3330651.

The first item in the list is not selected by default. From discussions
in other related bugs, there does not seem to be an agreement on this.

Supporting the actual token separator has also been punted. This would
require a new method in the Tokenizer, which could be ill-defined for
exotic tokenizer, plus typing a comma (for instance) to achieve a
completion is not a common pattern.

Change-Id: I30baf62077c412256175f871d21f4841e104f212
2011-02-09 16:54:18 -08:00
Adam Powell
8db7cb1cdf Fix bug 3395349 - Treat Spinner dropDownWidth property properly
Change-Id: I15bca2c938e1f9742cc5d47218632a1e636f90ac
2011-02-08 14:19:35 -08:00
Gilles Debunne
5a50351cf3 Merge "CTRL+A simply highlights all text." 2011-02-08 10:15:01 -08:00
Adam Powell
c1a35d2b1a Merge "Fix bug 3389707 - Spinner: should be able to expand wider than their collapsed size" 2011-02-07 19:09:44 -08:00
Adam Powell
19fd164408 Fix bug 3389707 - Spinner: should be able to expand wider than their
collapsed size

Change-Id: Ibd7389d3d7f74b36e9b3e42392cc1f3c0522f20d
2011-02-07 19:05:32 -08:00
Gilles Debunne
299733e2b4 CTRL+A simply highlights all text.
Bug 3351442

It does not start text selection mode, and does not display selection
handles. Just like a selectAllOnFocus does.

Change-Id: I3b6df3c57abb7cc2cd03a0a67896faeec2ec631f
2011-02-07 17:11:41 -08:00
Scott Main
97228942d8 am 602a891a: am b0f1cfff: Merge "docs: SearchView is iconified by default" into honeycomb
* commit '602a891aea0392168e90f9dee61b33f45c698f34':
  docs: SearchView is iconified by default
2011-02-07 13:51:36 -08:00
Scott Main
cccdbe9acb docs: SearchView is iconified by default
Change-Id: Iabe0fdc0b28847f0c401e3692932a73b7d595c88
2011-02-06 16:28:05 -08:00
Svetoslav Ganov
4fd9dae6a2 NumberPicker should not play initial animation while in edit mode
bug:3417930

1. Added a check if the widget is in edit mode to determine if to
   play the initial annimation.

Change-Id: Ibcf23fa1ec55a1950323e71eda90da6418b655fb
2011-02-02 15:17:24 -08:00
Gilles Debunne
15f16e3f86 am 65383292: am 8f8aac5e: Merge "Pixel were missing on the last line of text when using MaxLines." into honeycomb
* commit '6538329258ee01b27586d8b0e46e96160d719a68':
  Pixel were missing on the last line of text when using MaxLines.
2011-02-01 10:09:29 -08:00
Gilles Debunne
a90154fbe3 am d4155ae6: am 0ad4f096: Merge "Patches for the Paste window behavior." into honeycomb
* commit 'd4155ae607648942afbb5b5a20c93d82a839e0d2':
  Patches for the Paste window behavior.
2011-01-31 18:38:03 -08:00
Gilles Debunne
8f8aac5e8a Merge "Pixel were missing on the last line of text when using MaxLines." into honeycomb 2011-01-31 18:14:05 -08:00
Svetoslav Ganov
78ed7b801d Merge "Clean up of the DatePicker" 2011-01-31 17:53:00 -08:00
Svetoslav Ganov
13427a04de Clean up of the DatePicker
1. Removed a duplicate DatePicker stylable.

2. Fixed a bug that if the user wrongly desires to have the
   calendar view and spinners hidden despite that DataPicker
   ovrrides such incorrect choice to show at least the spinners
   the min adn max date attributes are igonored.

Change-Id: I6307db71aca837ad790aea59fa70ead393feb066
2011-01-31 16:37:33 -08:00
Gilles Debunne
0ad4f0963a Merge "Patches for the Paste window behavior." into honeycomb 2011-01-31 16:22:25 -08:00
Svetoslav Ganov
1c91433f7c Merge "Set time dialog display changes AM/PM at 1 instead of 12" into honeycomb 2011-01-31 16:11:59 -08:00
Gilles Debunne
11f9647e03 Merge "Hint text is visible when using center gravity." into honeycomb 2011-01-31 15:29:56 -08:00
Gilles Debunne
3ce726eb94 Patches for the Paste window behavior.
Bug 3409440

Change-Id: Id266bb83aa6e1912817995881daa9c24a1553c32
2011-01-31 15:20:50 -08:00
Svetoslav Ganov
be17a7f269 Set time dialog display changes AM/PM at 1 instead of 12
bug:3408128

Change-Id: Ifb17cbc0f448281cebb20296dcc58766cde02965
2011-01-31 15:02:26 -08:00
Gilles Debunne
9a80a65046 Hint text is visible when using center gravity.
Bug 3379366

Non left aligned text uses the VERY_WIDE width, but the hint text
was not.

Change-Id: I7327958336acf7fe16bb89bb8b7bf9b869167d53
2011-01-31 12:57:00 -08:00
Gilles Debunne
c1eb127f4e Merge "Tabs are resized to make sure they fit in their parent." into honeycomb 2011-01-31 12:01:34 -08:00
Gilles Debunne
ccfcd9e813 Merge "Fxi initial error popup dialog in TextEdit and refreshed assets." into honeycomb 2011-01-31 11:10:53 -08:00
Gilles Debunne
0a4db3c527 Pixel were missing on the last line of text when using MaxLines.
Bug 3295544

Only the last line of text includes the bottomPadding (extra line
spacing below the characters' descent. When The text is clipped using
maxLines, the desired height correctly added this value, but getLineTop
and getLineDescent are also used when the layout is drawn.

The fix is to make the layout aware of its clipping so that these
values are correctly updated.

Change-Id: I703656cf45022d34a90f55f0ed8fc5e4b30f80b1
2011-01-30 18:23:13 -08:00
Adam Powell
c9cb308371 Merge "Fix bug 3405899 - android.view.WindowManager$BadTokenException" into honeycomb 2011-01-30 16:12:56 -08:00
Adam Powell
65a1de963a Fix bug 3405899 - android.view.WindowManager$BadTokenException
Clear any pending runnables involved with TextViews when cursor
controllers are released

Change-Id: I96898fcc237f20d0b0f2351181244cb171fa2083
2011-01-30 15:47:29 -08:00
Gilles Debunne
12ab64593f Auto-clearing setError popup
Bug 3403325

Error popup has to be dismissed whether or not the key was handled.

Change-Id: Ib6326b27fc521398f3cb0c546d29a7de9df18375
2011-01-30 12:11:24 -08:00
Gilles Debunne
f1f409a389 Fxi initial error popup dialog in TextEdit and refreshed assets.
Bug 3398923

Set the background of the popup when it is created so that the first
measure is correct.

New assets.

Change-Id: I4803754ef3115429a608d890f56c6b0c8033d253
2011-01-28 18:30:52 -08:00