Commit Graph

4725 Commits

Author SHA1 Message Date
Alan Viverette
14d639755e am 62b910c0: am 6ef642ca: Merge "Clean up view drawable tinting methods, fix default modes" into lmp-dev
* commit '62b910c008da3fbcf11f67340002aa14e1d297b0':
  Clean up view drawable tinting methods, fix default modes
2014-09-15 00:00:37 +00:00
Alan Viverette
b56f5d2ab1 Clean up view drawable tinting methods, fix default modes
Calling setTint now only modifies the tint. It won't force a mode change.

BUG: 17494736
Change-Id: I91392634869ed23981d8e61a403bb2be42aa7a07
2014-09-14 15:48:50 -07:00
Adam Powell
214860b030 am 7362db5d: am 91089aa5: Merge "Make Toolbars eat touch events" into lmp-dev
* commit '7362db5d1c24ccc9e0c641d8d3f5ff0eefb1bc37':
  Make Toolbars eat touch events
2014-09-12 23:21:18 +00:00
Adam Powell
f116056a80 Merge "Make Toolbars eat touch events" into lmp-dev 2014-09-12 21:49:25 +00:00
Adam Powell
61d15b9856 Make Toolbars eat touch events
Just like action bars, toolbars shouldn't allow touches to fall
through to sibling views that they overlap.

Bug 17483356

Change-Id: I9068e1f9cf3c4226000e0058c371283a997b1bd0
2014-09-12 14:11:28 -07:00
Alan Viverette
7d6fc23fe7 am 99c628c4: am 4e7d44a5: Merge "Fix toolbar height, list divider alpha, action item padding" into lmp-dev
* commit '99c628c49642ac29511f7ae642ebfd031091a026':
  Fix toolbar height, list divider alpha, action item padding
2014-09-12 20:27:11 +00:00
Alan Viverette
9d9581f52e Fix toolbar height, list divider alpha, action item padding
BUG: 17487305
BUG: 17470290
BUG: 17486967
Change-Id: Ib0cb4308f9d57e730504bdeb125662b648cad0f7
2014-09-12 12:54:02 -07:00
Yohei Yukawa
6468b783c6 am 5bdb322f: am b7dd9519: Merge "API Review: Clean up removed APIs" into lmp-dev
* commit '5bdb322f8cdbc89113df20d79054d3f6c5d1ad44':
  API Review: Clean up removed APIs
2014-09-12 08:27:06 +00:00
Alan Viverette
129890704d am 36348edf: am d843db67: Merge "Remove unsafe methods that take TypedArray" into lmp-dev
* commit '36348edf997963043ca1fbf91dc59615d43ebcb1':
  Remove unsafe methods that take TypedArray
2014-09-12 05:47:03 +00:00
Alan Viverette
1c3d3e6a01 am bba2b9e8: am 8c7810a4: Merge "Vertically align toolbar child views with similar gravities" into lmp-dev
* commit 'bba2b9e8221a91dd03036b47e90f1ea364dc4fd2':
  Vertically align toolbar child views with similar gravities
2014-09-12 05:45:53 +00:00
Yohei Yukawa
3fadee4791 API Review: Clean up removed APIs
This CL removes old API signatures marked as @removed
in the follow CLs.
- Ic8c6fab58c01206872a34e7ee604cdda1581364d
- Ia8cbb9f6b41cd9509fc0147fd68763dfde593ffc
- I772c48ff18918e48a81e807b48ff907614485c09

This is just a clean-up CL. No behavior change is intended.

BUG: 17200900
BUG: 17320996
BUG: 17365414
Change-Id: Ibfbd5cc1cdebb8851c73477cff55c9b2d631fdea
2014-09-12 11:32:31 +09:00
Alan Viverette
e461d549bf Merge "Remove unsafe methods that take TypedArray" into lmp-dev 2014-09-12 01:30:35 +00:00
Alan Viverette
5171dee215 Remove unsafe methods that take TypedArray
BUG: 15782973
Change-Id: Ief4ff69c90c16b0e8c93316af9d46ae9639648fa
2014-09-11 16:33:01 -07:00
Alan Viverette
34e53ab66e Merge "Vertically align toolbar child views with similar gravities" into lmp-dev 2014-09-11 23:24:48 +00:00
Alan Viverette
e3cb7baeb9 Vertically align toolbar child views with similar gravities
Also fixes Body1 text size, action bar title size on sw600dp-land.

BUG: 17266152
Change-Id: Ib686dd6e80dfcdad920c922a532f4f5d6252fa19
2014-09-11 16:23:29 -07:00
Alan Viverette
bc57a08f5f am 5f9ce5e9: am 515699a4: Merge "Use Calendar day of week rather than Time in SimpleMonthView" into lmp-dev
* commit '5f9ce5e98322d328e6b0628875f73aa688a71c9e':
  Use Calendar day of week rather than Time in SimpleMonthView
2014-09-11 01:57:20 +00:00
Alan Viverette
0c1964e76d Merge "Use Calendar day of week rather than Time in SimpleMonthView" into lmp-dev 2014-09-11 01:22:55 +00:00
Alan Viverette
5878076456 Use Calendar day of week rather than Time in SimpleMonthView
BUG: 17377360
Change-Id: I685f35b760c049edaa8934eccaf5ce1bbf326cf2
2014-09-10 17:09:13 -07:00
Alan Viverette
86f062d98a am ba870607: am 78f863c7: Merge "Fix docs and nulling behavior for TextView.setCompoundDrawables" into lmp-dev
* commit 'ba87060785fbb90ba7d0777a3938a1b95d3ee5a6':
  Fix docs and nulling behavior for TextView.setCompoundDrawables
2014-09-10 23:51:39 +00:00
Alan Viverette
6b398e03c7 am 1c19026d: am 8b5ef83e: Merge "Make SearchView styles public, remove public Holo styles added in L" into lmp-dev
* commit '1c19026dadb9d6013f48901aaf1e6451b42f0977':
  Make SearchView styles public, remove public Holo styles added in L
2014-09-10 23:38:16 +00:00
Alan Viverette
593f2d33bb Merge "Fix docs and nulling behavior for TextView.setCompoundDrawables" into lmp-dev 2014-09-10 23:31:04 +00:00
Alan Viverette
7ff0270e7d Merge "Make SearchView styles public, remove public Holo styles added in L" into lmp-dev 2014-09-10 23:29:13 +00:00
Alan Viverette
362f984df3 Make SearchView styles public, remove public Holo styles added in L
We shouldn't adding styles for a deprecated theme. Also this cleans up
the removed public resources for easier deletion later.

BUG: 17455273
Change-Id: I2c5caf354aab91463702f25c38f0dd29c153ba44
2014-09-10 16:05:35 -07:00
Raph Levien
03d291fd5b am fff6aab7: am a31b4f03: Merge "Remove auto spaceifying behavior on paste" into lmp-dev
* commit 'fff6aab7826321c6005987ef4bfc88ae695ac0aa':
  Remove auto spaceifying behavior on paste
2014-09-10 21:16:49 +00:00
Raph Levien
20dbc370e3 Merge "Remove auto spaceifying behavior on paste" into lmp-dev 2014-09-10 20:55:51 +00:00
Raph Levien
5a689ce78e Remove auto spaceifying behavior on paste
The paste action contained some logic to automatically insert or remove
spaces, basically to emulate the semantics of the text being a sequence
of space-separated words. This was never universally loved, and gives
particularly unexpected behavior with a hardware keyboard.

This patch simply removes the logic to automatically adjust spaces on
paste, so what gets pasted is simply the literal buffer contents.

Bug: 16900326
Bug: 3304489
Change-Id: I5cdf9c43d98a17aa708883b47245aa7929a124d2
2014-09-10 11:03:18 -07:00
Alan Viverette
8c2b2085c9 am 0ca92d44: am b7afde5c: Merge "Bring up the IME when TextView receives ACTION_CLICK" into lmp-dev
* commit '0ca92d44894f7af06f595368281034d762693c61':
  Bring up the IME when TextView receives ACTION_CLICK
2014-09-10 00:50:53 +00:00
Adam Powell
361ca8c1e9 am 129aeb16: am 8197da77: Merge "ActionMenuViews always reserve overflow when creating their own menus" into lmp-dev
* commit '129aeb1644b8faf9600d74e18b2ab799a121830f':
  ActionMenuViews always reserve overflow when creating their own menus
2014-09-10 00:50:48 +00:00
Alan Viverette
97f84eeb0a Fix docs and nulling behavior for TextView.setCompoundDrawables
BUG: 17444686
Change-Id: I879f32722dda4c976b00fcd003ed18b9488654ab
2014-09-09 16:55:56 -07:00
Alan Viverette
a7cbaeb138 Merge "Bring up the IME when TextView receives ACTION_CLICK" into lmp-dev 2014-09-09 22:58:28 +00:00
Adam Powell
ad0c450d4d Merge "ActionMenuViews always reserve overflow when creating their own menus" into lmp-dev 2014-09-09 22:56:20 +00:00
Alan Viverette
d381834c77 am aafd303e: am e74dff14: Merge "Use correct row/column order in list and grid CollectionItems" into lmp-dev
* commit 'aafd303e48e95fda8b2b5bd9e3541e87997d6ef4':
  Use correct row/column order in list and grid CollectionItems
2014-09-09 21:55:33 +00:00
Adam Powell
e8d153673b ActionMenuViews always reserve overflow when creating their own menus
ActionMenuViews work in two modes: hosting another Menu instance or
creating their own. The former is used when an action bar is
displaying a window's options menu. The latter is used when an
ActionMenuView (or Toolbar) is placed within an arbitrary layout and
the getMenu method is called.

When showing a window's options menu, ActionMenuPresenter calls into
the ActionBarPolicy to determine if we should reserve an overflow
button or if overflow will be presented by the window instead. Always
reserve overflow if the ActionMenuView is presenting its own menu.

Bug 17381966

Change-Id: I17c495986994d421bf6276ae39ba233243432e97
2014-09-09 13:51:16 -07:00
Alan Viverette
b687788f52 Bring up the IME when TextView receives ACTION_CLICK
Simulates the relevant portions of a DOWN/UP event pair to request focus
and bring up the IME.

BUG: 8213791
Change-Id: Idb32d81552ecbbdefc64686c914eba6d8e28b0b8
2014-09-09 13:38:08 -07:00
Alan Viverette
b505298489 Merge "Use correct row/column order in list and grid CollectionItems" into lmp-dev 2014-09-09 19:57:09 +00:00
Adam Powell
5b39e1f3bc am 2cd0a9ca: am d6fa07e7: Merge "New new design for ResolverActivity" into lmp-dev
* commit '2cd0a9cace832232252f7344f5c9c5cbca282d99':
  New new design for ResolverActivity
2014-09-09 05:21:33 +00:00
Adam Powell
fd1e93d128 New new design for ResolverActivity
Switch back to using a list as the grid and differently positioned
activity icons were confusing to users. Keep the distinct "last used"
presentation but align icons and titles with the further choices
below. Adjust this to make the fold more apparent. Remember
open/closed slider state across config changes.

Fix some bugs in nested scrolling and flinging.

Bug 17301272

Change-Id: I175937d5821df27b6ac7ffad7f01cd9a6ed3e3e3
2014-09-08 19:25:37 -07:00
Alan Viverette
77c180a513 Use correct row/column order in list and grid CollectionItems
BUG: 17427260
Change-Id: Ie90767100bc38fa903173ae150b9807203230020
2014-09-08 15:30:34 -07:00
Yohei Yukawa
bb97c8a6a3 am 7d413caf: am 888edbfe: L API proposal: Introduce IS_RTL flag
* commit '7d413caf7b2a85bfbb46050410771267db6bdd8f':
  L API proposal: Introduce IS_RTL flag
2014-09-08 03:43:33 +00:00
Yohei Yukawa
5f183f0671 L API proposal: Introduce IS_RTL flag
This CL introduces CursorAnchorInfo.FLAG_IS_RTL for better
RTL support. This CL also renames *CharacterRect() with
*CharacterBounds() so that they can look more consistent
with other existing APIs.

Rationale:

CursorAnchorInfo.FLAG_IS_RTL addresses following issues.
1. There is no way to associate the RTL information with
   the insertion marker.
2. Returning mirrored (right < left) RectF for RTL in
   CursorAnchorInfo#getCharacterRect() is turned out
   to be bug-prone. Such usage of RectF is not fully
   supported. For example, RectF#isEmpty() always returns
   false when right < left.
3. There is no reliable to provide the RTL information
   when CursorAnchorInfo#getCharacterRect() returns an
   empty (right == left) RectF. Perhaps we could use +0.0
   and -0.0, but I'm afraid that it is also bug-prone.

BUG: 17365414
BUG: 17335734
Change-Id: Ic8c6fab58c01206872a34e7ee604cdda1581364d
2014-09-08 02:17:54 +00:00
Alan Viverette
b0465be3f5 am 7332e1f9: am d8bbf4cd: Merge "Add first day of week API to date picker" into lmp-dev
* commit '7332e1f9ba1c217cacfd5986e4722e4698d3b08d':
  Add first day of week API to date picker
2014-09-07 23:29:30 +00:00
Alan Viverette
a3ca5a31a5 Merge "Add first day of week API to date picker" into lmp-dev 2014-09-07 23:13:46 +00:00
Kenny Guy
cc8b8e8e0e am cc3fa1ef: am 42484d43: Merge "Fix RemoteViews to inflate views for current user." into lmp-dev
* commit 'cc3fa1ef5c5058d352dbf9d22141fa12d763e106':
  Fix RemoteViews to inflate views for current user.
2014-09-05 15:44:00 +00:00
Kenny Guy
da3af8fe1b Merge "Fix RemoteViews to inflate views for current user." into lmp-dev 2014-09-05 11:19:01 +00:00
Adam Powell
a46bdef5a8 am ce9978b5: am c3b7ca91: Merge "Menu callbacks for ToolbarActionBars, part 2" into lmp-dev
* commit 'ce9978b5fed0f941bf3613910d58c3d1538660b0':
  Menu callbacks for ToolbarActionBars, part 2
2014-09-05 04:26:05 +00:00
Adam Powell
c461250424 Menu callbacks for ToolbarActionBars, part 2
Pass through the menu mode change events and make sure Activities get
prepare/open/close events properly.

Bug 17326424

Change-Id: I0ac2f56e4d0054ef01720b2ff1c41ded053750c7
2014-09-04 19:16:39 -07:00
Adam Powell
7701884dd0 am f34ce09c: am 2e9f1521: Merge "Dispatch more menu events to window callbacks from ToolbarActionBar" into lmp-dev
* commit 'f34ce09c34591d16eb1cdf82fb4cb9af6855ffce':
  Dispatch more menu events to window callbacks from ToolbarActionBar
2014-09-05 00:41:01 +00:00
Adam Powell
e67efe66b9 am c947bffa: am 5a01e292: Merge "Material EdgeEffect refinements" into lmp-dev
* commit 'c947bffac6d9c0778eb63a2a183fe963695d07f2':
  Material EdgeEffect refinements
2014-09-05 00:40:56 +00:00
Adam Powell
e50a26f3d8 Merge "Dispatch more menu events to window callbacks from ToolbarActionBar" into lmp-dev 2014-09-05 00:26:30 +00:00
Adam Powell
1e7b18188c Merge "Material EdgeEffect refinements" into lmp-dev 2014-09-05 00:24:58 +00:00