Commit Graph

1954 Commits

Author SHA1 Message Date
Adam Cohen
84e35d995f Merge "Fixing old bug with AdapterViewFlipper" 2011-07-25 13:54:02 -07:00
Philip Milne
496aa6d4d9 Merge "Fix for http://b/issue?id=5064532" 2011-07-25 13:43:09 -07:00
Philip Milne
5125e21bc0 Fix for http://b/issue?id=5064532
5064532: GridLayout with initial "stretchy" row and "gone" view in last row doesn't stretch properly

Also:

. Infer stretchibility from whether or not gravity is defined.
. Make algorithms for handling flexibility within cell groups consistent
  with those acting between cells groups (via constraint system).
. Hide and deprecate methods taking flexibility argument.
. Hide and deprecate CAN_STRETCH constant.

Both deprecated features will be removed after references are removed from platform.

Change-Id: Iabf2bf19f35cf30b8ec49c99b49a0550fd495125
2011-07-25 12:12:10 -07:00
Amith Yamasani
c018496ab2 Merge "Implement CollapsibleActionView on SearchView." 2011-07-25 12:07:32 -07:00
Svetoslav Ganov
0d1d962720 Merge "Switch state text not added to accessibility events." 2011-07-25 11:23:56 -07:00
Svetoslav Ganov
63bce03cc6 Switch state text not added to accessibility events.
1. Adding the text to the events now.

bug:5071053

Change-Id: If36afb1f5327720fc002b8c49e5d7b00c5f189f7
2011-07-23 19:52:22 -07:00
Adam Powell
0bd1d0a152 Fix bug 5060033 - No text-editing toolbar when in a dialog
Fix a bug that caused standalone action mode bars to not appear
properly or account for system insets such as the status bar.

Add public API to View to toggle the fitsSystemWindows attribute.

Change-Id: I5d7669425b930c5d23f9df26a45f544b706e8242
2011-07-22 19:39:00 -07:00
Adam Cohen
4725660292 Fixing old bug with AdapterViewFlipper
Change-Id: I3eda7f2451aaf8c75dd38d6d68fdcc04c03d2ee6
2011-07-22 16:28:21 -07:00
Amith Yamasani
763bc07652 Implement CollapsibleActionView on SearchView.
Automatically handle expanding and collapsing in an ActionBar using
the new callback for Collapsible ActionViews.

Also clear the query text when collapsing.
Make sure that the 'x' doesn't show when in expanded mode with no text.

Change-Id: I7cba009c7cc9a1c264ec11c76315353cbde55c6c
2011-07-22 14:14:59 -07:00
Adam Powell
fc302cdeed Fix bug 5037537 - Revert "ListView focus bugfix."
This reverts commit a86127fe26.
2011-07-21 18:43:12 -07:00
Fabrice Di Meglio
b72dedfa5e Merge "Fix CheckTextView padding" 2011-07-21 16:12:43 -07:00
Fabrice Di Meglio
aff599b4ab Fix CheckTextView padding
- fix for bug #5051724 and bug #5051674
- override resolvePadding for doing correct padding resolution

Change-Id: Id8c7bf4afa24ff2169fd1bd7f5024a342279aab2
2011-07-21 15:24:09 -07:00
Gilles Debunne
d2bea20965 Merge "Bug 4534376: Suggestion popup is not clipped." 2011-07-21 13:33:13 -07:00
Svetoslav Ganov
6179ea3196 Adding accessibility support to the Status Bar.
1. Added content description to pretty much all animals
   in the zoo including buttons in the navigation bar,
   notifications and status icons for battery, signal,
   data, etc.

2. Rectored to avoid ovelaying views since they block
   touch exploratino. In general overlaying views
   cause trouble for touch exploration and accessibility
   in general.

3. Avoid sending accessibility events in case the user is
   touching outside of the StatauBAr panels to avoid
   confusion.

4. Added records to accessibility events in the places where
   this would help the presentation. So the event comes from
   a given "leaf" view and its predecessor is adding a record
   to the event for itself to provide more cotext. It is up
   to the accessiiblity service to choose how to present that.

bug:4686943

Change-Id: I1c1bd123d828fb10911bca92130e9a05c1f020b3
2011-07-21 12:04:54 -07:00
Svetoslav Ganov
d578be2784 Merge "Activity selections not always persisted by AcitivtyChooserView." 2011-07-21 11:48:57 -07:00
Svetoslav Ganov
8dbace2dc9 Activity selections not always persisted by AcitivtyChooserView.
1. ActivityChooserModel was delegating the rsponsibility for reading
   and persisting data to its clients i.e. ActivityChooserView and
   the latter was persisting on detach from window. However, it is
   not guaranteed that this callback will be received leading to
   lack of presistence sometimes. Now the model is responsible for
   loading and persisting thus voiding the posisbility a misbehaved
   client to cause data loss.

bug:5061638

Change-Id: Ia2b7bb659f7b9abe8869c94b3eaa726ddd4e4fad
2011-07-21 11:36:36 -07:00
Gilles Debunne
31a41d35f6 Bug 4534376: Suggestion popup is not clipped.
This happened when the popup was larger than the screen because of a very long suggestion.
The text will now be ellipsized with a marquee (better than using 2 lines I believe).

Also removed the up layout that was intended to be used when the popup did not fit vertically.
The popup is moved up instead if needed.

Change-Id: Ie741610e74ade10c691614f1c30d0e17b213c698
2011-07-21 10:49:50 -07:00
Gilles Debunne
317ab3427a Merge "Suggestions are dismissed by back key" 2011-07-20 17:51:36 -07:00
Jim Miller
83261239b0 Merge "Fix 5056699: GridLayout should maintain static indices for "gone" views." 2011-07-20 15:19:19 -07:00
Jim Miller
6235b47cba Fix 5056699: GridLayout should maintain static indices for "gone" views.
GridLayout currently ignores views with visibility="gone" when accounting for rows/columns.
Instead it should count views with visibility="gone" as rows/columns with row/height equal to 0.

This also makes it consistent with other ViewGroups like LinearLayout where "gone" views
don't change order and are still present (but hidden) within a container.

Change-Id: I289d4ee6275d5b49b1e1d79985484216bbf48089
2011-07-20 15:13:49 -07:00
Gilles Debunne
caed51bcc2 Merge "Insertion handles fades out after being positionned" 2011-07-20 09:12:41 -07:00
Romain Guy
59f13c7dfb Prevent NPE in TextView.getFadeTop()
Bug #5051776

Change-Id: I2fc1ac4b31c06cfb224898ff39f6b63bfbcd77e8
2011-07-19 18:35:33 -07:00
Gilles Debunne
3784a7f6f8 Insertion handles fades out after being positionned
Change-Id: I08b497222fd585a39cbd04b7be1992acf1a70145
2011-07-19 17:35:58 -07:00
Romain Guy
1003aeb9de Merge "Reduce the fade area to save bandwidth." 2011-07-19 15:20:46 -07:00
Romain Guy
f2fc460a95 Reduce the fade area to save bandwidth.
Change-Id: I8ccea17fc1fb3c132329baa0acc1b3d5a140a5c6
2011-07-19 15:20:03 -07:00
Philip Milne
ee4a6478e2 Merge "Expose to the platform the ability to pick up changes in child visibility." 2011-07-19 14:14:34 -07:00
Fabrice Di Meglio
c679e6e7ff Merge "Code cleaning" 2011-07-19 14:04:28 -07:00
Philip Milne
350f0a63c9 Expose to the platform the ability to pick up changes in child visibility.
Also:

. use above, to flsuh GridLayout state when child's GONE state changes.

Change-Id: I8567c24b51b807f0625918d42b6847a5a350311d
2011-07-19 14:00:56 -07:00
Fabrice Di Meglio
f66fdadefb Code cleaning
- follow member name code style

Change-Id: I7a3540ee511aa600c71d2e4b9b7e7f94e47618a9
2011-07-19 13:08:47 -07:00
Philip Milne
e7dda0bb3d Fix build breakage.
Change-Id: Ifdc2c02c8c18d3d372e6d2043c4819a0a7384c97
2011-07-19 10:35:56 -07:00
Fabrice Di Meglio
5f9fa88268 Merge "Test Gallery layout direction." 2011-07-19 10:16:04 -07:00
Philip Milne
2e29de7cab Merge "Gather View's hierarchy notifications into methods that can easily be overidden." 2011-07-19 10:03:43 -07:00
Philip Milne
f51d91c3ab Gather View's hierarchy notifications into methods that can easily be overidden.
Also:

. Remove backward compatibility Group class now that AppsCustomizePagedView has been updated.

Change-Id: Ie3eabbdf57a539b28cdc3fd6d48cd984a4014960
2011-07-19 09:51:56 -07:00
Doug Felt
3d0124f176 Test Gallery layout direction.
Change-Id: If88f559e8cc46bb72ed45f33d7fc52802f1e1246
2011-07-18 17:39:07 -07:00
Amith Yamasani
b4569fb17f SearchView behavioral and visual changes
Align text suggestions and search string.
Close button only clears the field.
Back button clears focus, hides dropdown and keyboard.
Tweaked SearchDialog's use of SearchView to follow above patterns.
Fixed other little bugs.

Change-Id: I9d34c2ebe2b1b2ca887220894c19a26809db85f6
2011-07-18 17:32:24 -07:00
Dianne Hackborn
6dd005b481 I. Can. Not. Stand. ViewAncestor.
It was done so we would have the name "ViewRoot" available for a
public API.  However, the name "ViewAncestor" just makes no sense.
So instead, change it to ViewRootImpl.

Change-Id: If9599ca67896f339f6fefa7d1dde121201171d97
2011-07-18 16:16:23 -07:00
Philip Milne
682dbafc8f Merge "Derive GridLayout's 'gap' constants from new "default_gap" entry in dimens.xml." 2011-07-18 15:17:06 -07:00
Philip Milne
b0ce49b5ad Derive GridLayout's 'gap' constants from new "default_gap" entry in dimens.xml.
Also:

. removed static import of R.styleable - this is non-standard
. removed final modifier from DEBUG flag,
	this prevents the compiler from excluding the debugging code but
	allows debugging code to be enabled externally
. added override to removeAllViews() as GridLayout needs to be notified whever hiearchy changes.

Change-Id: I2409289bce7c6638eff320ffd48a6c0704e77fa8
2011-07-18 14:38:14 -07:00
Svetoslav Ganov
414051b8b1 Update the style of the action bar share UI
1. Made the background of the default and expand buttons change when pressed.

2. When the share UI is shown on the overflow the "Show all" menu item was
   present event if all items are shown.

3. The width of the popup for picking an item was different for the action
   view and overflow case.

bug:5039747

Change-Id: I72afbcf86c93596c7eba4d70c002eab060ff31f8
2011-07-17 22:59:25 -07:00
Svetoslav Ganov
0f55cc33f6 AccessibilityNodeInfo does not report checkable coreclty.
1. AccessibilitiyNodeInfo's checkable property was not set.

bug:5039205

Change-Id: I083d1c357c6d9875536e66e355c8a33bd580cee6
2011-07-17 10:51:54 -07:00
Gilles Debunne
176ee3d0f2 Bug 5037953: Fix NPE in bringPointIntoView
Change-Id: If711f65de1a70ac9132b0b853a9f336ec56355b8
2011-07-16 13:51:24 -07:00
Adam Powell
8132ba5e2e Fix bug 5011067 - align popup lists to their content rather than
window frame by default

Change-Id: I05803b7487248d38981c2adc5422bf01761bc18c
2011-07-15 18:22:44 -07:00
Fabrice Di Meglio
9c83011005 Merge "Fix bug #4972141 Overlapping content in single-choice dialogs" 2011-07-15 17:51:46 -07:00
Fabrice Di Meglio
54d6962555 Fix bug #4972141 Overlapping content in single-choice dialogs
- need to take care about padding resolution

Change-Id: Ida9738ffada6c6455b7949f933fa61924c4f7961
2011-07-15 17:05:11 -07:00
Fabrice Di Meglio
9703ac8e6f Merge "Some code refactoring" 2011-07-15 16:52:03 -07:00
Gilles Debunne
c7f2cdea3c Merge "Bug 4382356: No automatic focus change in ScrollViews" 2011-07-15 10:55:32 -07:00
Gilles Debunne
8202cd3602 Bug 4382356: No automatic focus change in ScrollViews
The current behavior in ScrollView is inconsistent: a slow scroll will
not change focus while a fling will. With this change, the focus is not
moved from field to field (resulting in poup due to keyboard / suggestion bar
state changes).

Also made sure any new input in a TextFields scrolls back the view to make the
EditText visible. Has no effect if the EditText is already visible.

Change-Id: I7ff301fe85f73c27d76e4893aeab7442d0539b13
2011-07-15 10:00:50 -07:00
Fabrice Di Meglio
50e95eba5c Merge "Implement textDirection heuristic selection." 2011-07-15 09:49:48 -07:00
Gilles Debunne
38143a6822 Merge "Bug 5014726: Paste works in ExtractedText" 2011-07-15 09:41:16 -07:00
Jeff Brown
1e20946aa3 Ensure selector state is updated when touch mode changes.
This fixes a problem where the focus selection rectangle
often remains visible even after entering touch mode.
This problem is particularly noticeable when using the
mouse to scroll the list while an item is selected.

Change-Id: I9938d2586725d91fd3f6738408233f2ead167319
2011-07-14 22:19:19 -07:00