Commit Graph

2059 Commits

Author SHA1 Message Date
Fabrice Di Meglio
c2d256b415 Merge "Improve TextDirection resolution" 2011-08-22 16:24:43 -07:00
Michael Jurka
04963769e3 Merge "Track motion events before we decide to start scrolling" 2011-08-22 16:23:40 -07:00
Michael Jurka
13451a476a Track motion events before we decide to start scrolling
Change-Id: I0e2de488c62814982a21b7a7debbf1cd78e5891c
2011-08-22 15:54:28 -07:00
Svetoslav Ganov
151763d3fc Merge "Adding a callback to ShareActionProvider + make ActivityChooserView popup hide on action bar hide." 2011-08-22 09:35:00 -07:00
Fabrice Di Meglio
a646145c33 Improve TextDirection resolution
- remove unuseful heuristics
- tune Javadoc

Change-Id: Id72a158b3a17a528423d278b1cbfd95b8c2951b5
2011-08-19 16:19:37 -07:00
Amith Yamasani
1629618098 Merge "Fix an unintentional change in method signature and avoid an API change." 2011-08-19 14:29:34 -07:00
Amith Yamasani
a465b2d4c3 Fix an unintentional change in method signature and avoid an API change.
Change onDetachedFromWindow() override to a protected method, like superclass.

Change-Id: If626c5187290516d525cab5a76f5c5cabe2d87f0
2011-08-19 13:01:22 -07:00
Adam Powell
23f4cc0353 Fix bug 5099037 - No delete option when multiple videos are selected
Fix some bugs related to how action item slots are allocated in menus.

Fix some padding/margins in ActivityChooserView.

Change-Id: I12096b0165daca902c5bc8e24c1e8d54a35e9557
2011-08-18 16:19:31 -07:00
Romain Guy
7fa6e42483 Merge "Invoke requestLayout() when drawables have different sizes. Bug #5142668" 2011-08-17 20:06:14 -07:00
Romain Guy
9e648c44de Invoke requestLayout() when drawables have different sizes.
Bug #5142668

Change-Id: I0d3ae27984e69394e64b8aa0623bc3d6b22bc629
2011-08-17 20:05:38 -07:00
Chet Haase
a8a44c68ee Merge "Fix NumberPicker text positioning." 2011-08-17 18:35:07 -07:00
Chet Haase
eeafd4296b Fix NumberPicker text positioning.
NumberPicker was making incorrect assumptions about how text was
positioned and centered inside of its controls. This fix changes
the logic of how the scroll wheel draws its text items based on where
the text is positioned inside the EditText that displays the text
by default. This should ensure that the text of the scroll wheel
exactly overlays the text in the EditText view.

Change-Id: I4a7694931f19042bd4142232612490c2ab912d11
2011-08-17 18:26:56 -07:00
Fabrice Di Meglio
3de510313a Merge "Fix bug #5175022 Easy mode in MeasuredText.setPara() is no more used" 2011-08-17 17:30:46 -07:00
Amith Yamasani
cb87968865 Merge "Don't force measurement when SearchView is in iconified mode." 2011-08-17 17:28:58 -07:00
Fabrice Di Meglio
4b60c30838 Fix bug #5175022 Easy mode in MeasuredText.setPara() is no more used
- use the real TextDirectionHeuristics constants
- make more formal that LayoutDirection should be resolved BEFORE TextDirection
- reset TextDirection if LayoutDirection is recomputed
- remove non used TextDirectionHeuristic.isRtl(CharSequence...)

Change-Id: I1d53a7e3ee324cfd27785bb4d715d93de8d9ff4d
2011-08-17 17:15:12 -07:00
Amith Yamasani
a95e488bdc Don't force measurement when SearchView is in iconified mode.
Bug: 5178204

Update the focused state drawables when focus changes. Blue
underlines were not showing up consistently.

Bug: 5174426

Also use the correct style for the search icon so that it matches
other actionbar actions.

Change-Id: I8beed4cf435b074280a5dd79f7a4da4a39152b71
2011-08-17 16:43:55 -07:00
Luca Zanolin
15b8016434 Fix bit comparison for checking the variant of the input type.
Change-Id: I0c74af09e29e39fbd092c10b107ea7aa3273a680
2011-08-17 18:47:27 +01:00
Adam Powell
751b85e8c3 Merge "Fix bug 5048082 - Conversation doesn't scroll after you send a message" 2011-08-16 16:46:48 -07:00
Adam Powell
ee78b173aa Fix bug 5048082 - Conversation doesn't scroll after you send a message
Fix TRANSCRIPT_MODE_NORMAL to work properly when multiple data set change
events happen before a relayout.

Change-Id: If866f7c649c1119d088020f1231b916047402b8c
2011-08-16 16:39:59 -07:00
Gilles Debunne
4cee03a85f Merge "Change the behavior of SuggestionSpan." 2011-08-16 13:23:25 -07:00
Amith Yamasani
846b762474 Merge "Voice search icon replaced by X on typing." 2011-08-16 12:45:08 -07:00
Luca Zanolin
7d1c55fad8 Change the behavior of SuggestionSpan.
SuggestionSpan can be accessed in two different ways:

- by tapping on the text (easy access)
- by tapping on "replace" pop-up (not easy and difficult to discover)

The "easy access" will be used for dictionary suggestions and voice recognition suggestions.

The suggestion span can be rendered into two different way:

- default, text is underlined in blue
- spelling error, text is underlined in red

Change-Id: I0af0fe6700d0ad588facb21c021dc6f59ef172f1
2011-08-16 10:42:45 -07:00
Fabrice Di Meglio
3365275aa2 Merge "Fix bug #3388534 Long file names are improperly displayed when played" 2011-08-15 18:40:34 -07:00
Jeff Brown
0be5d7d333 Merge "Find next focus id from inside-out. Bug: 5165543" 2011-08-15 18:21:54 -07:00
Jeff Sharkey
360abf32cc Merge "Adjust holo tabs to match spec." 2011-08-15 18:17:43 -07:00
Romain Guy
5fa3e1446a Merge "Fix synchronization issue in ArrayAdapter External bug #19235" 2011-08-15 18:15:22 -07:00
Adam Powell
62e2bdecc2 Fix bug 5165223 Fix Holo Spinner item/dropdown alignment.
Fix bug 5117565 Spinner popup extends out of screen bounds.

Change-Id: I7fef7bbe98aa26611c498d1fe875e84db57dcda0
2011-08-15 16:54:40 -07:00
Jeff Sharkey
11f4a48c54 Adjust holo tabs to match spec.
Change-Id: I8653ab10cd45bed3c38b15362e80af6c3319f763
2011-08-15 15:49:48 -07:00
Romain Guy
95a78c3837 Fix synchronization issue in ArrayAdapter
External bug #19235

Change-Id: I57d28a48ee1e4216e042e7f9d4b198b713f05b93
2011-08-15 15:48:17 -07:00
Jeff Brown
4dfbec2665 Find next focus id from inside-out.
Bug: 5165543

This change fixes some problems when the view hierarchy contains
duplicate ids, such as when ListViews contain nested custom views.
If the custom views contain next focused id hints, then the system
should prefer the other views within the ListView item over any
other views outside of the ListView item.

Change-Id: I5653ff6bac0bf9f08bd6ecbe5a3bb22ea47ab566
2011-08-15 14:55:37 -07:00
Fabrice Di Meglio
8059e0903e Fix bug #3388534 Long file names are improperly displayed when played
- force ellipsising when there are more lines found than maxLines
- do not care about lines when we have reached maxLines
- also fix relayouting when changing maxLines thru setMaxLines()
- do not allow START / MIDDLE ellipsis when there are multiple lines
(and print a log accordingly)

Change-Id: I90f5a7f5200a220aceee01fb7300bec2c4c3a075
2011-08-15 13:18:34 -07:00
Adam Powell
e21f89c802 Merge "Fix bug 5159596 - Slider grabs touch point when trying to scroll a list" 2011-08-15 10:29:10 -07:00
Gilles Debunne
186c1683ce Merge "Text suggestions are enabled for a subset of input types" 2011-08-15 10:07:59 -07:00
Adam Powell
1029866a12 Fix bug 5159596 - Slider grabs touch point when trying to scroll a list
SeekBar widgets were not good citizens when placed in scrolling containers.
Detect when a SeekBar being touched is in a scrolling container and fall
back to a touch slop-based method for beginning a drag. Taps along the
seek bar itself will still change the value on touch up, even if the touch
slop never initiated a proper drag.

Factor out the code used to determine scrolling container status in View
into something that can be reused elsewhere in the framework; leave it
@hidden for now.

Change-Id: I59a21e8ab2c3b0092fafedbcd6ae1ee15f45971c
2011-08-14 18:29:23 -07:00
Amith Yamasani
167d69ac41 Voice search icon replaced by X on typing.
Also, adjust width measurements to work for 32dip icons in actionbar.

Bug: 5160466
Change-Id: I7197d710de16f92af8ea797ac504a3a73ee090d9
2011-08-12 19:28:37 -07:00
Gilles Debunne
248b112dda Text suggestions are enabled for a subset of input types
Change-Id: I0e521eec2784af99ff741a1132a3bc3f7b7aa071
2011-08-12 13:57:45 -07:00
Gilles Debunne
1329192fc3 Merge "Bug 5150869: Text selection enabled in browser." 2011-08-12 11:36:50 -07:00
Gilles Debunne
2237829e77 Bug 5150869: Text selection enabled in browser.
After text selection is started, rebuildWebTextView is called, which
calls setHorizontallyScrolling with false (multi-line). This was already
its value, but since there was no test for a value change, the layout was
nulled and this stops the selection mode.

Change-Id: I99aadbf45fca4fbdbe8ab7266fe9a7ff839e2792
2011-08-12 10:43:51 -07:00
Dianne Hackborn
8a5c6617d5 Merge "Fix issue #5016544: IME keyboard hides folder rename text field." 2011-08-11 11:38:32 -07:00
Gilles Debunne
072b50c667 SuggestionEnabled flag enforced in ActionPopup
Also removed the Nothing to paste string (and its references)

Change-Id: Iaed952075e9e72dcb962ca52341615bc57cb4047
2011-08-10 14:13:17 -07:00
Daniel Sandler
ffad0cf83d Merge "Fix obviously broken DateTimeView.onAttachedToWindow()." 2011-08-09 19:35:57 -07:00
Adam Powell
74df8e3492 Merge "Flingable switches" 2011-08-09 16:38:21 -07:00
Adam Powell
01d11edc1e Flingable switches
Change-Id: I640656358cf28569242d900d41493a69845f7305
2011-08-09 16:32:12 -07:00
Amith Yamasani
5607a38271 Added methods to change text entry mode in SearchView.
Bug: 5143618

Handle imeOptions and inputType attributes in SearchableInfo.
Methods to directly modify those attributes on SearchView.

Change-Id: I340617767f930ecb1b1ad5ab2696bc613982a20b
2011-08-09 15:16:08 -07:00
Dianne Hackborn
70a3f677bf Fix issue #5016544: IME keyboard hides folder rename text field.
Tweak some issues in TextView with the focus rect used to determing
where the scroll position needs to be.  The ultimate problem was that
in various situations it would use the right-most selection position
cursor as the scroll location and when it adds 1 to make this a valid
rect we end up with a rectangle that is outside of the view.

Change-Id: Ia200c58e4e014d2a0a1be4761f9a1e5eb702a8e5
2011-08-09 11:11:25 -07:00
Gilles Debunne
1f6ac8b1e0 Merge "Handles' position are updated in case of external change." 2011-08-09 10:22:15 -07:00
Gilles Debunne
b932146135 Merge "The PASTE action is always displayed, even when starting a selection" 2011-08-09 10:22:02 -07:00
Daniel Sandler
8d3c234407 Fix obviously broken DateTimeView.onAttachedToWindow().
Change-Id: I6b9e948d26b4c22b4520ca48b71c1f7e45ca7899
2011-08-09 13:10:20 -04:00
Adam Powell
50d3c667eb Merge "Fix bug 5135608 - Let AbsListView take focus while detached" 2011-08-09 00:03:16 -07:00
Adam Powell
b3750133db Fix bug 5135608 - Let AbsListView take focus while detached
While it is valid to request focus while detached from a window,
AbsListView did not handle it gracefully if it had an adapter whose
data changed while the view was detached, since DataSetObservers are
unregistered during this time. Assume that the data could have changed
if we gain focus while detached.

Change-Id: Id135693ffcc48ff5a9d530d335ab449180624c43
2011-08-08 23:50:25 -07:00