• Home
  • History
  • Annotate
  • only in /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
History log of /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4b3edb53b158518329719439db18b0cbd38f27e9 27-Jan-2015 Dake Gu <dake@google.com> Don't rebind to a new view in notifyItemChanged

Disable item change animation by default for leanback.
This is a regression in lmp-mr1 caused by RecyclerView
turning on item change animation by default.

Bug: 18779939
Change-Id: I4fba38965a8a7a2613769619b6b0b17203c3a1ca
aseGridView.java
473fa246e0b44f88b3e052ad8738ae77f14cef89 22-Jan-2015 Dake Gu <dake@google.com> Fix SparseArrayObjectAdapter.clear()

Issue: 19111955

Change-Id: I967ade2e5aed86ceef395e404d93fa9702426979
parseArrayObjectAdapter.java
100e37bdec64de77f82ea19e88e74a0fd842b119 13-Jan-2015 Craig Stout <cstout@google.com> Merge "Handle child layouts due to child selection." into lmp-mr1-dev
697886fa2541e4e1223396d38329451e9e83d08b 13-Jan-2015 Craig Stout <cstout@google.com> Merge "Fix browse fragment smooth scrolling." into lmp-mr1-dev
83472d580eec480f87e29a27ca546d1848ed99f6 13-Jan-2015 Craig Stout <cstout@google.com> Merge "Allow customized recycled pool size." into lmp-mr1-dev
fe9b510d4adbf39eeb335c8e37f37a2ec9fd3456 13-Jan-2015 Craig Stout <cstout@google.com> Merge "Fix scroll controller initialization." into lmp-mr1-dev
597f620c2503bb18aabf0b6fe4c0c84ab7b42cba 08-Jan-2015 Craig Stout <cstout@google.com> Handle child layouts due to child selection.

b/18840332

Change-Id: Id70b6ea3c21e00be8529cc4ba59aafc1b67b10ab
ridLayoutManager.java
f185bcb93b28f5e81b88405445157a2b53a2d1c7 22-Dec-2014 Craig Stout <cstout@google.com> Fix browse fragment smooth scrolling.

In most cases (During layout and when smooth scrolling) we shouldn't add
items until they have scrolled into the window.

On focus search fail we should add items immediately; however the modified
methods are not part of that code flow.

b/18742856

Change-Id: I83bbc583a7809e65ed930353aa804bd95b362eee
(cherry picked from commit e3cbb083dad7a70b26f542b7bb5d7b67a8c8621e)
ridLayoutManager.java
bb370eee93bfe84a6e14be0e8476f48c32e2dcb0 30-Dec-2014 Craig Stout <cstout@google.com> Allow customized recycled pool size.

b/18742856

Change-Id: If914653d255c3c3c23492a4e044bd640f070917c
(cherry picked from commit 9e352dac7be9457d2cae3c6accb8ee910399c5ca)
istRowPresenter.java
3f23b01f1e22f971e2105557137927822e7419f1 19-Dec-2014 Craig Stout <cstout@google.com> Fix scroll controller initialization.

b/18742856

Change-Id: I00429638e1ce1e2e9fc7b7d5aa7b474c9945f155
(cherry picked from commit 2ced342a1b5cf07415825f7f5bae26f012b3832e)
ridLayoutManager.java
07a94289970bb0badbd427b40eca97131638874d 19-Dec-2014 Craig Stout <cstout@google.com> Improve view recycling.

Don't start fade in until view is attached, otherwise views bound during
the leanback measure phase aren't recycled.

Don't start animation immediately when attached because the framework will
double count the child having transient state.

b/18742856

Change-Id: I21a0bde9a501454d1bbe244c49b2fd3fbdeaa120
(cherry picked from commit 89589687d8aafcfdc11d9760205e9d0b16505201)
mageCardView.java
5a40b451b2d0fd1c746ea8e22c56d0988c40b860 13-Dec-2014 Kris Giesing <kgiesing@google.com> Merge "Change ResizingTextView so that it defaults to leaving line spacing alone" into lmp-mr1-dev
dc5b25a4083e1d00716fa9f70d26712453fdbeab 12-Dec-2014 Kris Giesing <kgiesing@google.com> Change ResizingTextView so that it defaults to leaving line spacing alone

b/18736147

Change-Id: Iea32924cd77b3683f1b7c83b3a0a39afa5ca04c4
esizingTextView.java
ceb323a31b16a5ee227c7e68f147b86bf7bfa639 11-Dec-2014 Dake Gu <dake@google.com> Fix GridLayoutManager initial append/prepend logic

Bug 18718926

Change-Id: I2658f3363a8258b03be4d3286d0f44ca2f55e2fa
ridLayoutManager.java
f032181dec150eadd94cdc936c6e18d83443d9c7 11-Dec-2014 Dake Gu <dake@google.com> add RTL javadoc for window alignment

Bug: 18631342

Change-Id: I8bad796a2e3ea5af1e5661e523a6a769cb181a02
aseGridView.java
e0e66a21916f94ebbced0d1ffe3dc652c9c7a15e 10-Dec-2014 Kris Giesing <kgiesing@google.com> Fix various RTL issues related to multi-row grid views

Also fix some RTL issues related to grid views that do not wrap content

b/18631342

Change-Id: Ibc52057375c24409dacd7af3fb1e487d022b9ff8
ridLayoutManager.java
taggeredGrid.java
taggeredGridDefault.java
indowAlignment.java
28f46ad88c0f297a77cf5dba2d286c0a9a0d6824 09-Dec-2014 Kris Giesing <kgiesing@google.com> Merge "Pass an appropriate default style up the constructor chain" into lmp-mr1-dev
e36b890d49e33f38eada22a0d9f84974bda2ddb0 09-Dec-2014 Craig Stout <cstout@google.com> Merge "Reset scroll when all items removed." into lmp-mr1-dev
4a6588a5160206fc7063e5a140a405dfd84f0cc9 08-Dec-2014 Craig Stout <cstout@google.com> Reset scroll when all items removed.

b/17575336

Change-Id: Ie5038b6893051a3a83e999bbcd8b64c170880083
ridLayoutManager.java
afb8ae27a2d6f7d7088a39b9eb4a43369df91270 08-Dec-2014 Kris Giesing <kgiesing@google.com> Pass an appropriate default style up the constructor chain

Bug: 18117832
Change-Id: I30f9a18ebe2e50dc1db03692f0743474b23183d1
esizingTextView.java
7fa663ffa812ebc8cb2bb492eecc40485b145eba 04-Dec-2014 Kris Giesing <kgiesing@google.com> Add ResizingTextView to leanback library.

ResizingTextView is a class that adjusts text size automatically in response
to certain trigger conditions, such as text that wraps over multiple lines.

For now this class is only used in DetailsFragment, and is hidden from
javadocs. The API will be revisited before making it public.

Bug: 18117832
Change-Id: Ic8679e370acb48f8dcda6c1e05b23229e8f5739f
esizingTextView.java
7db64bb839e5589b38322f9f7456cb928ffc2c1c 05-Dec-2014 Dake Gu <dake@google.com> Fix end alignment of grid

And simplify and take out reverse handling from WindowAlignment.

Bug: 17953835

Change-Id: Ieebed8c1f7b4f5664462f0db210865b60cecd3e9
ridLayoutManager.java
indowAlignment.java
b455339a4d442068dd312fb93c0544106810dfad 04-Dec-2014 Dake Gu <dake@google.com> Prevent NPE in Presenter.cancelAnimationsRecursive

Bug: 18456704
Change-Id: I66f7827800aaabc9faa9d62486f8c32e88403b14
resenter.java
56c76a9fceeb2a516e4bc82bb8b31bbcec6528fc 04-Dec-2014 Craig Stout <cstout@google.com> Merge "Fixes to support improved external recognizer overlay." into lmp-mr1-dev
490691bd414dbb2093dc6cb56ae63ae9b04e70e3 04-Dec-2014 Craig Stout <cstout@google.com> Fixes to support improved external recognizer overlay.

b/17611324

Change-Id: I449fcfdd1ec408e86e6305d4a6fc185af77a4902
earchBar.java
2f1ca5d5a26ed0320b7f670a9e4a3a03287afb61 12-Nov-2014 Craig Stout <cstout@google.com> Remove deprecated api.

Removal part 2/2.

b/17455376

Change-Id: Ibc29f2b0e66565586780ba02475157506e23b571
eaderItem.java
e2047098f696c81f6435cdd588a62d8ab5829c7d 24-Nov-2014 Craig Stout <cstout@google.com> Fix SearchFragment auto start of voice recognition.

Also fixes back navigation for single activity multi fragment apps.

b/18488044
b/18333293

Change-Id: I2a1649a7ef2feaa14c89dc0545ba37df5e80f53e
earchBar.java
936867a6a063492207bd3cd68a1aa870dd5c9da5 30-Nov-2014 Craig Stout <cstout@google.com> Fix in app search text box redlines.

b/17611324

Change-Id: I622bc8f755f107cc832d871013050468e3b9a87b
earchBar.java
8f51aa01152a33d489471bc7c667b39cc2062706 26-Nov-2014 Dake Gu <dake@google.com> am 9036a735: am 02582d90: Merge "Leanback: fix crashes of setScrollEnabled on empty list" into lmp-dev

* commit '9036a735b00ebcaada5981ff607a598439e52662':
Leanback: fix crashes of setScrollEnabled on empty list
02582d90a07220d14ae199fa208f0ba30280afd2 26-Nov-2014 Dake Gu <dake@google.com> Merge "Leanback: fix crashes of setScrollEnabled on empty list" into lmp-dev
7a0c98633e247d9eb4bdb081a4ef4a5103f04f73 21-Nov-2014 Kris Giesing <kgiesing@google.com> Merge "Update details overview and action presenter for RTL support" into lmp-mr1-dev
d633c87b6565c6068a5c5beb5a1ef91a493acea8 21-Nov-2014 Craig Stout <cstout@google.com> DO NOT MERGE Fix crash when focus requested on a child that was removed.

This can happen when all views are removed.
This a regression triggered by a cherry-picked of recyclerView change ag/582987

b/18474947

Change-Id: I1b9c4b82488a893ba7e668cdc79e41a03d7c61a2
(cherry picked from commit 9b68e453d30984d524dcf25fdc2e645ae853ac33)
ridLayoutManager.java
475d474909f8e7ed27caae527997d74bf4f8a307 21-Nov-2014 Craig Stout <cstout@google.com> Merge "Fix crash when focus requested on a child that was removed." into lmp-mr1-dev
9b68e453d30984d524dcf25fdc2e645ae853ac33 21-Nov-2014 Craig Stout <cstout@google.com> Fix crash when focus requested on a child that was removed.

This can happen when all views are removed.

b/18474947

Change-Id: I1b9c4b82488a893ba7e668cdc79e41a03d7c61a2
ridLayoutManager.java
4e602840ed6741b44a536826799625ad0be4b3c6 21-Nov-2014 Kris Giesing <kgiesing@google.com> Update details overview and action presenter for RTL support

Bug: 18020272
Change-Id: I39c2fc4d7a049af8c16a01e12bd6d885ca546b2d
ctionPresenterSelector.java
etailsOverviewRowPresenter.java
8e3566285de4ac771d6188f62fe947e23d371a3d 19-Nov-2014 Kris Giesing <kgiesing@google.com> Changes to support RTL layouts

Bug: 18020272
Change-Id: I3e07b5f3784303b0b50dccc72d9d5ab140ea158f
ctionPresenterSelector.java
aseGridView.java
ridLayoutManager.java
orizontalHoverCardSwitcher.java
caleFrameLayout.java
indowAlignment.java
b008e4b45faf7c1ece57e48a3517520d65e3b8ca 20-Nov-2014 Dake Gu <dake@google.com> Leanback: fix crashes of setScrollEnabled on empty list

b/18449655

Change-Id: I362433c679f46eb5565d12251db0c24421e3fb55
ridLayoutManager.java
ad16ef7c021371b7ae385ab049f76d0aa6f5c988 18-Nov-2014 Dake Gu <dake@google.com> Merge "Leanback: Support delayed details entrance transition" into lmp-mr1-dev
3f0f3eb255bde49549a77c0b5d252decaa2a0202 13-Nov-2014 Dake Gu <dake@google.com> Leanback: Support delayed details entrance transition

Added a BaseFragment and move shared entrance transition code in.

b/17628884

Change-Id: Ibfe78116a0822925dbd25dbfde38e9b1c8e6c488
istRowPresenter.java
owPresenter.java
38fd20857fac70b00fadd3186915647b63858e8e 18-Nov-2014 Craig Stout <cstout@google.com> Merge "Called details/description presenter view attached/detached." into lmp-mr1-dev
447860fd5c105dd0ccd227237ac5f18fdc4c26dc 18-Nov-2014 Craig Stout <cstout@google.com> Stop orb color animation when fragment is paused.

b/17789226

Change-Id: I2a467ba0f0673e3248b7738e6381adc6dd5fd95b
itleView.java
26d11212c4a66b075807888caacac5ee7fc10dc1 17-Nov-2014 Craig Stout <cstout@google.com> Called details/description presenter view attached/detached.

b/17664696

Change-Id: Ie58113b70ce92b82085d62a548cc9e9db13280df
etailsOverviewRowPresenter.java
laybackControlsRowPresenter.java
e62056d592c183d6975ffe96cf3ec8dace0e0f3a 13-Nov-2014 Craig Stout <cstout@google.com> Merge "Deprecate unused api for image uri." into lmp-mr1-dev
43afed9e93ab5b510440412b35c6b39e4ecffb7a 12-Nov-2014 Dake Gu <dake@google.com> Merge "Leanback: do not use clipChildren=false for ScaleFrameLayout" into lmp-mr1-dev
30f578068f9972cdd69fedaaa66821c8e9a38a5e 12-Nov-2014 Craig Stout <cstout@google.com> Deprecate unused api for image uri.

Removal part 1/2.
Add new constructors to be used instead.

b/17455376

Change-Id: Id3ef402f484d95bef218ffcf2afa7f64e0bd52e5
eaderItem.java
6a0a9a6f8fd8ab428d81732875d6245777556b5f 12-Nov-2014 Craig Stout <cstout@google.com> Merge "Helper classes for managing standard playback control actions." into lmp-mr1-dev
eb66dab544c4c1eabe4d469b7cea348d4b01e664 30-Oct-2014 Craig Stout <cstout@google.com> Helper classes for managing standard playback control actions.

b/18077079

Change-Id: Id299ee35cf44ef987cea8a2d8718df4837de1abc
rrayObjectAdapter.java
ontrolButtonPresenterSelector.java
laybackControlsRow.java
parseArrayObjectAdapter.java
3595aa0cbdaa8e754365ca94a0b9eb8fc52b9796 11-Nov-2014 Dake Gu <dake@google.com> Leanback: do not use clipChildren=false for ScaleFrameLayout

Activity transition uses getGlobalVisibleRect() to decide whether
to run a window Return transition on a View, this function will
ignore child outside ancestors bounds even clipChildren=false.

Changed the way we scale the view so that we don't need
use clipChildren=false any more. Side benefit: this CL also takes
out the need of flipping clipChildren flag in header transition;
clipChildren=true is also better performance-wise.

b/18292516

Change-Id: Ie5018ae5c0e5e1df9e0f92e2435da767c7b8b3c5
caleFrameLayout.java
ad0f156d72636100caac697aef7118c0522861c0 30-Oct-2014 Craig Stout <cstout@google.com> DO NOT MERGE Fixes for playback overlay controls.

b/18078409

Change-Id: Iaa5e3c8c9da835ba722569755e8faee966b0aa83
ontrolBarPresenter.java
laybackControlsRowPresenter.java
42f8a879beb54fd181c588b78554367d947ec48b 20-Sep-2014 Dake Gu <dake@google.com> DO NOT MERGE Leanback: Finish implements overreach feature

GridLayoutManager Overreach feature is not quite right yet, a diff of
alignoffset * (1 - 1/scale) needs to be applied.

And we may need overreach for views other than gridlayoutmanager.

Move all the functions into a ScaleFrameLayout,
so that it can scale any type of view, not just gridlayoutmanager.

b/17914987

Change-Id: I99e0711041a2115b3ed1bce29e7a021b2a2132bd
aseGridView.java
ridLayoutManager.java
caleFrameLayout.java
f1c65f3168c64d82d61783284ba6fb6ad6cae922 09-Oct-2014 Dake Gu <dake@google.com> DO NOT MERGE Set transitionName for rebind after transition

After transitionEnd, people may rebind row to view, where
we may re-create the view (even though the view should be
in recycle pool unless app calls notifyChange() which invalidate
all the recycle pool). So we should always setTransitionName()
on the view for a back transition. Meanwhile we should clear
transitionName on existing view when rebind to a new view.

Added logs.

b/17918639

Change-Id: I204cf847114e5d379e6671e44a5d37c5c9ec5ebf
etailsOverviewSharedElementHelper.java
2c016cea6309ccf11b1625259c8b810143cdef88 07-Nov-2014 Tim Kilbourn <tkilbourn@google.com> DO NOT MERGE Add logging.

Needed for a later cherrypick; originally came from a change that was
not able to be cherrypicked.

Change-Id: Ic7676121af682ea0ecec8d4386e465b18c625f9b
etailsOverviewSharedElementHelper.java
c04ca1b14c5bf9ecac80fc53d3f28a5a7fdd4e77 07-Nov-2014 Dake Gu <dake@google.com> Leanback: add Browse and Details enter and return transition

b/17628884

Change-Id: I5ab571563b75cfac6eaff662c4263aba0a6fa055
istRowPresenter.java
owPresenter.java
571796b3ae0c5e15d9324a61745506b5ba47682c 28-Oct-2014 Dake Gu <dake@google.com> DO NOT MERGE GridLayoutManager: Fix crash in onMeasure

mFocusPosition is not in range in onMeasure() which
is executed before onLayout()

b/18153129

Change-Id: I0fc94caca64e8ccf0ab439b9fd44eca500fb6bd1
ridLayoutManager.java
76b50416ae52b6c80af7a8661b949c19ddad6bf7 14-Oct-2014 Dake Gu <dake@google.com> DO NOT MERGE Add script to generate v4 fragment code.

To provide v4 version fragment which is required by lots
of apps. To avoid generate two versions of resource file,
move shared widget class into widget package.

Outreach clipToChildren should be set on parent of VerticalGridView,
parent will be different for v4 case and none-v4 case.

b/17930984

Change-Id: Ica8cbd7195b481cd0831386b51cfff4955feda6b
rowseFrameLayout.java
rowseRowsFrameLayout.java
d1911befd5509ac5ba188559eab193291bedb4ed 17-Sep-2014 Dake Gu <dake@google.com> DO NOT MERGE GridLayoutManager: fix scrolling glitches caused by interference of transition

disable scroll of animation initiated before transition started and restore the
scroll animation when transition is done.
Disable focus out in scrolling.

Bug 17551262 Wrong item position in row
Bug 17549016 unexpected horizontal scrolling is running after we go from content to fast lane

Change-Id: I2d7acbafad415436ad7200b17ad31e2ac0e6a6d8
ridLayoutManager.java
5dac2c723e1d50da356170a6f372dcbab1a7d83c 30-Oct-2014 Craig Stout <cstout@google.com> Fixes for playback overlay controls.

b/18078409

Change-Id: Iaa5e3c8c9da835ba722569755e8faee966b0aa83
ontrolBarPresenter.java
laybackControlsRowPresenter.java
1f000f84b9f8db8778b941a6a1bf60f3d349545d 20-Sep-2014 Dake Gu <dake@google.com> Leanback: Finish implements overreach feature

GridLayoutManager Overreach feature is not quite right yet, a diff of
alignoffset * (1 - 1/scale) needs to be applied.

And we may need overreach for views other than gridlayoutmanager.

Move all the functions into a ScaleFrameLayout,
so that it can scale any type of view, not just gridlayoutmanager.

b/17914987

Change-Id: I28d073b39eba9c0d24093274b2f5a524e3381aa9
aseGridView.java
ridLayoutManager.java
caleFrameLayout.java
ef9d4aa4eb25e5a0e6ec3ff7c406ced131726ff2 30-Oct-2014 Nick Chalko <nchalko@google.com> Fix spelling error in onViewDetachedFromWindow javadoc.

Change-Id: Ib52d054094275c4a79235ef47ceedc56f683d54a
resenter.java
80d061649db1d8e5c69f400fef4d61e2fde9dd3b 29-Oct-2014 Dake Gu <dake@google.com> Merge "GridLayoutManager: fix scrolling glitches caused by interference of transition" into lmp-mr1-dev
99881f0d15df96179f93eee2d624b338d327571c 09-Oct-2014 Dake Gu <dake@google.com> Set transitionName for rebind after transition

After transitionEnd, people may rebind row to view, where
we may re-create the view (even though the view should be
in recycle pool unless app calls notifyChange() which invalidate
all the recycle pool). So we should always setTransitionName()
on the view for a back transition. Meanwhile we should clear
transitionName on existing view when rebind to a new view.

Added logs.

b/17918639

Change-Id: I7ae0d39175c2162500bcfcdc87e9219408f2ded1
etailsOverviewSharedElementHelper.java
9a934fa3710ecb3fb2eb67e33a611563a144186d 28-Oct-2014 Dake Gu <dake@google.com> ArrayObjectAdapter: Support replace

also add shortcut to clear/remove avoid fire event not needed.

b/17893479

Change-Id: I5a987f877a3ce593f176c3224f35447048f0c15a
rrayObjectAdapter.java
2986af93ba272bdc69d414bdcf5fcf0901c8ee97 28-Oct-2014 Dake Gu <dake@google.com> GridLayoutManager: Fix crash in onMeasure

mFocusPosition is not in range in onMeasure() which
is executed before onLayout()

b/18153129

Change-Id: Ie156072b284098e671e4b90e0fad574c263a1fdd
ridLayoutManager.java
290ba2dbf37227e931a657bd3c819db68a80480d 27-Oct-2014 Dake Gu <dake@google.com> Merge "Leanback: Add support for imageView scale type transition" into lmp-mr1-dev
5d00775a5d3ce3c1fc06c4de0945d1b8f03aadc4 14-Oct-2014 Dake Gu <dake@google.com> Add script to generate v4 fragment code.

To provide v4 version fragment which is required by lots
of apps. To avoid generate two versions of resource file,
move shared widget class into widget package.

Outreach clipToChildren should be set on parent of VerticalGridView,
parent will be different for v4 case and none-v4 case.

b/17930984

Change-Id: I1c67186d9046ac8fd5b2c45de048a3fae2b79be7
rowseFrameLayout.java
rowseRowsFrameLayout.java
05805862fe972a3e3c0d199b7eb3a80fc5bdd7b6 16-Oct-2014 Craig Stout <cstout@google.com> Fix talkback accessibility by setting playback control labels.

b/17974328

Change-Id: I88bf9d3574e5a9b6f4738bc0e3bed178fc9637fc
ontrolButtonPresenterSelector.java
laybackControlsRow.java
13f6f74d1057d950f838cbadb2b2fc939e412ed8 10-Oct-2014 bulic <bulic@google.com> Merge "Removed click sound effect for search orb" into lmp-dev
2a3ff0424bb423d8719c340f6158873abca99bc0 09-Oct-2014 Tim Kilbourn <tkilbourn@google.com> Merge "Play sound and update orb during onReadyForSpeech." into lmp-dev
9d9f969b5f37b4454b49f74125521c82a8bf88c4 09-Oct-2014 Tim Kilbourn <tkilbourn@google.com> Play sound and update orb during onReadyForSpeech.

Delays the sound until closer to when things are actually ready.

Bug: 17922736
Change-Id: I67a1923d09df4366a0f1d77b871f9afc7e64b0d6
earchBar.java
c4788eac909f51e73e05885314d3ace65d0a2f26 08-Oct-2014 bulic <bulic@google.com> Removed click sound effect for search orb

b/17789838

Change-Id: I0589e4ddc1f61e012d7e44b8c875d57c4be86ebc
earchOrbView.java
9e3b908cd06f14bc7810e744ccb174ee55c972a5 08-Oct-2014 Craig Stout <cstout@google.com> Speech orb fixes.

Scale factor.
Reset mCurrentLevel on start.

Bug: 17610737
Change-Id: I4ea3aab26dd9e56a929384f9b16bb98e074d9823
peechOrbView.java
49bd8747a667ae5f45a132d803cc18a80e963545 07-Oct-2014 Jerome Poichet <jpoichet@google.com> Speech orb improvements

- orb moves more dramatically when receiving volume changes
- no breathing colors while recording

Bug: 17610737

Change-Id: Ib7c415f1f5152d415539f770c0e3eea31277a923
peechOrbView.java
e2bc82a1c02f667901bd96e244afa7dc0232b354 04-Oct-2014 Jerome Poichet <jpoichet@google.com> SpeechRecognizer fixed in framework

Now that SpeechRecognizer calls cancel when being destroyed, no need for
the delayed destroy call. It was actually leaking a service, and could
cause crashes in application using the SearchFragment.

Moved the show/not show listening to correspond when voice is actually
being recorded.

b/17789827 Mic won't open
b/17675621 Music search - runtime restart
b/17851959 In-app voice search should grab audio focus

Change-Id: I34473743a9e42c4b87eccc3ae85cd8f5ade15ca3
earchBar.java
22e46a46e20c53b2e2d23dca792534ee3434c954 04-Oct-2014 Dake Gu <dake@google.com> SearchFragment improvements (2nd try)

1. Expose startRecognition() for calling from Activity.onNewIntent()
(When user clicks mic button in search activity)

2. Do not pass text change event when we are in speech recognition.

3. Autofocus back to speech orb when startRecognition() is called.

4. Make sure internal speech recognizer calls stopRecognition.

5. When SearchFragment calls setSearchQuery(), make sure stopRecoginition.

b/17790589

Change-Id: I55ca97b5b3384b47214a0afac35bd31324e89347
earchBar.java
b7b4d9a241526b79ec39083299f6d7dcf1f2a7eb 06-Oct-2014 Dake Gu <dake@google.com> Merge "Revert "SearchFragment improvments"" into lmp-dev
2eac9924967d79de4a4488eb9bf0fc2950819670 06-Oct-2014 Dake Gu <dake@google.com> Revert "SearchFragment improvments"

This reverts commit edb67b0b59ee6657b2d1adb6b2822858db34e8c8.

Change-Id: If2627e201dd0e7dfcc3359718175e2a7c74b8ac2
earchBar.java
5681c8261b2bc2bb77bf78e1e84c8123553de944 06-Oct-2014 Dake Gu <dake@google.com> Merge "SearchFragment improvments" into lmp-dev
edb67b0b59ee6657b2d1adb6b2822858db34e8c8 04-Oct-2014 Dake Gu <dake@google.com> SearchFragment improvments

1. Expose startRecognition() for calling from Activity.onNewIntent()
(When user clicks mic button in search activity)

2. Do not pass text change event when we are in speech recognition.

3. Autofocus back to speech orb when startRecognition() is called.

b/17790589

Change-Id: I3d3c9ce57f467dc6f1f26d3608b13c7b34a8adce
earchBar.java
a088f574b916685bd0a75ff613ac2009a3bad483 03-Oct-2014 Craig Stout <cstout@google.com> Support for displaying partial results.

b/15492986

Change-Id: I3f75260e26146230d91e2be73d978435c72bfdb7
earchBar.java
earchEditText.java
treamingTextView.java
d5dff7f2ff07d060e052083f1e4d9d01c2b7ee8e 03-Oct-2014 Craig Stout <cstout@google.com> Expose SearchOrbView.enableOrbColorAnimation.

Apps should disable color animation when paused.

b/17788704

Change-Id: I18e703bedcd9980ff08ec303c0ab47ae7a2bb7c0
earchOrbView.java
f52e0718c20bedc86f0b67f6b3660e737d787bd4 27-Sep-2014 Dake Gu <dake@google.com> Support restoring SearchFragment results

1. do not start speech recognition if SearchFragment is
restored from instance state
2. onTextChange() is invoked when restore view hiearchy,
we should change query regardless if it has focus or not.
3. Defer first setAdapter() on RowsFragment until we got some data
from result Adapter. If there are multiple consequent
onChange() events (e.g. add result rows one by one), they are
consolidated into one callback so that first setAdapter() on
RowsFragment will include all of them.
4. Fixed problem that results being cleaned while IME opens up,
it temporary clears the edittext.
5. Fix the wrong fragmentId when we try to find fragment restored
by FragmentManager, so we can restore the selected position!


b/17624232

Change-Id: I22e4192ca5c363b0d9545b412c5be7aec8554832
earchBar.java
e33fac64498a83e1138b0e0aad732ea29e2f8a81 01-Oct-2014 Jerome Poichet <jpoichet@google.com> Prevent NPE

We could get a null for the query, use TextUtil to be safer

b/17759464 Music crashing on mic button in LRX01

Change-Id: I85628827dee811e41d9fe3c8c6f2483bd876fc1e
earchBar.java
b81a2943b9e150c6caca969e62c5375928c4cd1c 30-Sep-2014 Dake Gu <dake@google.com> Leanback: Add support for imageView scale type transition

Copy snapshot code from framework SharedElementCallback.

Read scale type and matrix from snapshot view. Requires a framework change.

b/17703309

Change-Id: I9c0f3c980b4724cbd118e2d6e25aa2750ce47260
etailsOverviewSharedElementHelper.java
7a52e206fb20167f0b7e7a9daa7abb952d5f544d 30-Sep-2014 Dake Gu <dake@google.com> Fix NPE caused by incorrectly calling detachAndScrapViewAt

b/17702252

Change-Id: I48456ba7a970237cb218351f3b184ef680b8c65f
ridLayoutManager.java
7cd2deb3bb7af14abdb5cc9500f3638ce0af2eea 17-Sep-2014 Dake Gu <dake@google.com> GridLayoutManager: fix scrolling glitches caused by interference of transition

disable scroll of animation initiated before transition started and restore the
scroll animation when transition is done.
Disable focus out in scrolling.

Bug 17551262 Wrong item position in row
Bug 17549016 unexpected horizontal scrolling is running after we go from content to fast lane

Change-Id: I4c7d14f1e60b70984745c1ab9f55748d9abcc5aa
ridLayoutManager.java
e7b29b745f6562b43ad79074cf5445a26cd4073c 26-Sep-2014 Dake Gu <dake@google.com> leanback: fix transition shared element

Since we add one more framelayout with background, the shared element should be
the new framelayout.

b/17661532

Change-Id: I19869e648f6caadf774ec7e662a33ad233f0c1c9
etailsOverviewSharedElementHelper.java
db6a0d1b5f4c0353d168fd5b22661246d23aa206 24-Sep-2014 Craig Stout <cstout@google.com> Fix onAdapterChanged.

Don't reset potentially restored state when the old adapter is null.

b/15696646

Change-Id: Ibc311fb62ad87ad35e0a98ed4f95f30aab752544
ridLayoutManager.java
26c145aadca16cba3f294cc93c36edc6e9c98e6a 22-Sep-2014 Craig Stout <cstout@google.com> Fix broken shadow on details overview row.

Also fixes layout issue seen in Play Games.

b/17608823
b/17609089

Change-Id: I97c1aceee0c6e3af5d6dc447003c02ea584d2031
etailsOverviewRowPresenter.java
55f1d8b057b1e273c9c34a1f06c7a2f0c8868a97 19-Sep-2014 Craig Stout <cstout@google.com> Merge "Support select effect on details overview rows." into lmp-dev
d391b19d1bf663ce300b0f4550e6fbaa7e12b0d4 19-Sep-2014 Dake Gu <dake@google.com> Leanback: Add a default timeout for Detail Activity transition.

Avoid deadlock if the details activity never loads content.

b/17576164

Change-Id: Iccd3992f607295fbfa79ed7b1844972c3b709ca4
etailsOverviewRowPresenter.java
etailsOverviewSharedElementHelper.java
09d52d76912e3689cc2b58b7bb3f44b923915fd8 18-Sep-2014 Craig Stout <cstout@google.com> Support select effect on details overview rows.

b/16898456

Change-Id: I7228c35b3cdf07b5863275d47d1648e81bb45911
etailsOverviewRowPresenter.java
16d71295acfe8e8808df57db6747049c121c1512 18-Sep-2014 bulic <bulic@google.com> Fix for installs hanging on launcher

If an item is made invalid by changing its viewtype, we need to detach
and readd the view to ensure a new viewholder is created and bound.

b/17517359

Change-Id: I701b24a57d27c6c3b4569b80959cb2a315a2857c
ridLayoutManager.java
af1b3cf80f8976e00271add905e537bb22cbb61a 16-Sep-2014 Dake Gu <dake@google.com> Merge "Fix performance of hero transition" into lmp-dev
ceb7ab2ddd6e157cd4ade0f14a382c39428163c4 15-Sep-2014 Dake Gu <dake@google.com> Fix performance of hero transition

Use hasOverlappingRendering false for action list
details description frame and ImageCardView.

TODO for transition: Ideally ImageCardView should hasOverlappingRendering
and transition should create hardware layer for fade animation.

b/17499864

Change-Id: I4c4437c7e1ac19051ab939bea2ee0b2119d03090
aseGridView.java
etailsOverviewRowPresenter.java
etailsOverviewSharedElementHelper.java
mageCardView.java
mageCardViewInfo.java
onOverlappingFrameLayout.java
onOverlappingLinearLayout.java
owContainerViewHeaderDock.java
963e336e8839f26c739007242caf7ca4e50e792d 15-Sep-2014 Craig Stout <cstout@google.com> Add recognizer intent helper methods to search fragment.

b/17509582

Change-Id: I4ff3f49cec65149c1b7f4561f322bec864d0bf65
earchBar.java
4c696a0ad561090035960c2f34a058562c7f2aad 15-Sep-2014 Craig Stout <cstout@google.com> Polish speech orb.

Pulse color on focus, add shadow, zoom icon.
Refactored SpeechOrbView to subclass SearchOrbView.

b/17452282

Change-Id: I8dc34da4f24967f4c26dc3ca11b0388dbecf3de8
earchOrbView.java
peechOrbView.java
361955cd7c040bf30330c8e21d9016c747a94473 13-Sep-2014 Craig Stout <cstout@google.com> Add a callback interface for voice input.

Bug: 16320681
Change-Id: I48224a8167435372c722553ba88e4f6961d9c152
earchBar.java
peechRecognitionCallback.java
c7d3c9aa60ae79dbbca7a3bfe63a7e8458d301b5 13-Sep-2014 Dake Gu <dake@google.com> ImageCardView: avoid creating hardware layer in headers transition

For performance.

b/17490677

Change-Id: I74eb24fe190f13b6a26c2aee0fa5948a6f9d0ddc
mageCardViewInfo.java
2320d56e598912d7bd714b0edd9965610a6b49c5 13-Sep-2014 Dake Gu <dake@google.com> Merge "BrowseFragment: no longer use left fading edge" into lmp-dev
eb4947ed0d90c24552d1edc7943763a7e765fc87 13-Sep-2014 Dake Gu <dake@google.com> BrowseFragment: no longer use left fading edge

For performance.

b/17487746

Change-Id: I48e60514e3e058a7223d0d790eecfb37c6db761c
istRowPresenter.java
3659dc62f9e55b1043edb4105c311c8ef997f2ae 13-Sep-2014 Dake Gu <dake@google.com> avoid creating hardware layer for headerView

by declaring hasOverlappingRendering is false on the element with alpha

b/17409091

Change-Id: Idc3ae30a63f794b5db4fa5afc6f94e72eb3e183f
owContainerViewHeaderDock.java
0fff85d7f9dee67ec5116f3cba4e8b3961f805a7 11-Sep-2014 Craig Stout <cstout@google.com> Scale rows when headers are showing.

b/15887467

Change-Id: Ib7a942c7de6f7bdfef08ba8ef8e938abee585358
aseGridView.java
ridLayoutManager.java
a6c18317f09969688b7d329a5b4ce35c8d648e4f 10-Sep-2014 Craig Stout <cstout@google.com> SearchFragment polish.

Fix search bar vertical position.
Fix visibility of hint text.

b/15881642

Change-Id: I423d4f3d8394b9630d651bc41b2aef71827c46e7
earchBar.java
c031fd76061137a1873a1e506c499710b71dc9e3 10-Sep-2014 Craig Stout <cstout@google.com> Merge "Fix focus navigation from search bar down to results." into lmp-dev
a52784195525cdb1f2bb4d8dde1b8b314f480957 10-Sep-2014 Chet Haase <chet@google.com> Remove references to "L"

Issue #16894783 Remove references to L when API is locked down

Change-Id: Icf1215eed34e6fbe3d71a5cec4bf1699c3bc3ff9
oundedRectHelper.java
hadowHelper.java
f6221e91bd3f0f584893baadcb9f8cf5621dce3b 09-Sep-2014 Craig Stout <cstout@google.com> Fix focus navigation from search bar down to results.

b/16189418

Change-Id: Iba103910fd7d80888d2ebc3b876a326f5ab2828d
earchBar.java
9325acc6799fbb0bef84a5ac9b25bfca0701420f 09-Sep-2014 Craig Stout <cstout@google.com> Fix speech orb colors and icon.

b/15599562

Change-Id: I502cc051d1a89ac2a4d71d64128e7a8e3b2b0475
peechOrbView.java
2024f694e8ae778eefb3f6b6cdc245a67975436c 09-Sep-2014 Craig Stout <cstout@google.com> Merge "Fix double layout framework warning." into lmp-dev
d7618ab69ef591dd5342b9481c4954bfc7e9110c 08-Sep-2014 Dake Gu <dake@google.com> Fix fading out children not moving with parent

Don't remove child of listview, switch visiblity instead.
Removed children will fade out at original position but not moving
with parent.

b/17423570

Change-Id: I253bdbadeefb71ced6971d446a17d96d7a96dea3
aseGridView.java
ridLayoutManager.java
b33714d135e006cf3bdba09788c27d4791b8632e 07-Sep-2014 Craig Stout <cstout@google.com> Fix double layout framework warning.

When in layout, invoke the child selected listener before child layout.

b/15446050

Change-Id: I5d123d2586bdb55a410365a38146d1310fbfbe8a
aseGridView.java
ridLayoutManager.java
4d32be88ce98efb2088455135905181d64d89fc6 05-Sep-2014 Craig Stout <cstout@google.com> Merge "Fix context leak." into lmp-dev
6ced181ce948d1ae03c1a8402cf5ca31e2bef170 05-Sep-2014 Craig Stout <cstout@google.com> Fix context leak.

Stop orb animation when detached.

b/17408665

Change-Id: I74e59ce7b9f6ea13d3233b680cbcf4390cba479d
earchOrbView.java
4474506866a0ee006974d9b20b3f9fa9f15b99a1 05-Sep-2014 Dake Gu <dake@google.com> Merge "Leanback: Dim unselected grid item" into lmp-dev
46e7de54775fc37dc51041629c79249e6dae3242 05-Sep-2014 Dake Gu <dake@google.com> Leanback: Dim unselected grid item

Also hide FocusHighlight interface from doc.

b/17388123

Change-Id: I2501e8e501b6ab75570e11356413cf87fdc46d9f
ocusHighlight.java
ocusHighlightHandler.java
ocusHighlightHelper.java
temBridgeAdapter.java
istRowPresenter.java
erticalGridPresenter.java
9306f07b1d66f4974a81f781d29739b30124fff0 29-Aug-2014 George Mount <mount@google.com> API Review: change SharedElementListener to SharedElementCallback

Bug 17289526

Change-Id: I49f8d838207524fbf0ec099021bcf7312c28bd82
etailsOverviewSharedElementHelper.java
5358b0ca6ed795892bd097fdf15d41fb6b1a03d2 03-Sep-2014 Craig Stout <cstout@google.com> Fix memory leak when fast scrolling rows.

If a presenter starts a view property animation, then the parent row view
will have transient state which may cause a row to fail to be recycled
during a fast scroll, because RecyclerView checks transient state and
refuses to recycle a view if it or its children has running view property
animation.

This can cause a memory leak because ObjectAdapters have references to
ItemBridgeAdapters via the registered observer mechanism.

Apps should clear any view property animations in Presenter
onViewDetachedFromWindow, but in case they don't we'll do it for them in
the base class.

b/17013302

Change-Id: Ibdf5998e81dd130128f88f85d88243ec27a70dd5
mageCardView.java
istRowPresenter.java
resenter.java
owPresenter.java
14d54b35a8927e7b116ab8fa6ac621ecfcbe4bb0 29-Aug-2014 Dake Gu <dake@google.com> GridLayoutManager: fix selection offset problem

When user calls "setSelection" *before* add items
to the adapter. The mFocusPosition is already set to
the position, then adding more items will incorrectly
add offsets to not yet created item. We should not
apply pending offset in such situtation.

Ideal fix is that: user should add all items to the adapter
*before* set adapter on the view.

b/17331101

Change-Id: Ic07b68874c3742e6d29275a1c5921fa8afc08011
ridLayoutManager.java
37eb0e53ba5363bbe15314c7d19d4b2d6024a5aa 29-Aug-2014 Dake Gu <dake@google.com> Fix Action row does not gets updated

Games has mutliple rows, so row view will be reused
and the ActionList will bind to different adapter.
When changing adapter of ItemBridgeAdapter, also
needs to notify recycler view that something has changed.

b/16897784

Change-Id: I010dd046a2f332ab0f6874bd786d41ef86795bd0
etailsOverviewRowPresenter.java
a37118706af7d79adeb8b3918fb52fad99ece361 28-Aug-2014 Dake Gu <dake@google.com> GridActivity: use large as default scale

b/16687095

Change-Id: Ibb8764100bf537727bf298bf27ec1d30102ef19e
erticalGridPresenter.java
1102fc6fafe721522f2b67f86d89feda87096265 28-Aug-2014 Dake Gu <dake@google.com> GridLayoutManager: Multiple fixes to state saving

1. Implemented a LruCache based child states to limit the memory used.
2. When adding/removing child happens, clean up all cache (will lose all offscreen
child view state). This is because we use index as key, which will be changed.
3. Evict item cache when item is changed.
4. Make saveChildren policy API of BaseGridView, only the vertical list
which has nested horizontal list turned on this feature. This is quite
reasonable assumption: only save the nested horizontal list's focus
index but no more deeper children states: less expensive and avoid
potential unknown problems.
5. load children states inline instead of requesting layout, fixed bug
that requestLayout gets eaten by a top level scrolling layoutmanager.

b/17212513

Change-Id: Ic60c7ac216fa265b64646c3072767983eeb02653
aseGridView.java
ridLayoutManager.java
iewsStateBundle.java
b300ce0dfc3ad41fd6fef25833dfe4b14d5261d2 28-Aug-2014 Dake Gu <dake@google.com> GridLayoutManager: fix alignment when refreshing new data

b/17309152
b/17307859

Change-Id: I78825aefbeca6302594ac397bfe0acb27df46027
ridLayoutManager.java
81a36a4dd93bf2f14c2eb88ae01464f85ddb0706 27-Aug-2014 Dake Gu <dake@google.com> GridLayoutManager: forget child view state when there is a change

b/17212513

Change-Id: I6bd73fab467d109fcdcb1d9664fe6c1a5fdf8acd
ridLayoutManager.java
iewsStateBundle.java
536b1a299d5fa25bf55c3543719b123aaaaafca3 25-Aug-2014 Dake Gu <dake@google.com> GridLayoutManager: fix layout from non-first column

Fix problem when layout item from non-first column.

b/16824116

Change-Id: I26a1cd9ab7c7b6309709d9bf57b6b0bc624bcc8f
ridLayoutManager.java
906659fc65e7b8b1bc9f0c7cc3dabf7e64e8b9bf 22-Aug-2014 Dake Gu <dake@google.com> GridLayoutManager: support nested onSaveInstance()

This goes beyond just saving selected position, in order to support
dynamic 2D list view (list view of list view), LayoutManager needs
maintain a position/id to View state Bundle mapping for children.
Child view will be saved when they are offscreen and restored when
showing on screen.

b/15702302

Change-Id: Ie48300684945ee3adacc042e73d06a411287e6d1
ridLayoutManager.java
iewsStateBundle.java
c62efa44831b1c60dcbdfd968735e27ac8294439 22-Aug-2014 Craig Stout <cstout@google.com> Add shadow to fastlane.

b/15777980

Change-Id: I2f6a0d42dc711405c920204570d75737ba44475a
etailsOverviewRowPresenter.java
laybackControlsRowPresenter.java
earchOrbView.java
hadowHelper.java
3146269a82645438b55a41c679047e3be36e65df 21-Aug-2014 Craig Stout <cstout@google.com> Ensure list row bottom padding is always sufficient for shadows.

b/17180725

Change-Id: I6199394a88ccabb96242cd21b5f0f31c36ee937c
istRowPresenter.java
cda8867f3c17e94f41d7dcd491e0eb27e6a3953a 21-Aug-2014 Craig Stout <cstout@google.com> Merge "OnItemViewClicked/SelectedListener for details rows and playback controls rows." into lmp-dev
1eb6cc286944b1e2f60decdf6432e5f780092c94 21-Aug-2014 Dake Gu <dake@google.com> Merge "GridLayoutManger: fix setSelectedPosition is aligned to a wrong position." into lmp-dev
e692c096892075c6ac5cf509f118df6b618edecc 21-Aug-2014 Dake Gu <dake@google.com> Merge "onLayoutChildren() should not interrupt SmoothScroll" into lmp-dev
801d8b7bc960a5ae4b0e23af8ac5b8b81f8ad6f3 21-Aug-2014 Dake Gu <dake@google.com> GridLayoutManger: fix setSelectedPosition is aligned to a wrong position.

setSelection calls scrollToView(false), which offset children's location and
switches focused child which incorrectly triggers another not needed scroll
animation. The extra scroll animation causes "over" scroll amount.

Also fixed row not being highlighted if people calls notifyChanged() and
setSelectedPosition(1) consequently, the mSelectedViewHolder is set to the
selected row 1, then an immediate onLayoutChildren() detached and reattach
all rows, which clears the selected state of the row, but
mSelectedViewHolder is still referring row1, and skipped a selected event
fired from onLayoutChildren(). The fix is to clear mSelectedViewHolder
when view holder is detached from parent.

b/16681515

Change-Id: I61a8efde46327853a2ed67af63fa125d5426f907
ridLayoutManager.java
cf992de2d34abb8228dc6cb39fffe97346823a37 20-Aug-2014 Craig Stout <cstout@google.com> OnItemViewClicked/SelectedListener for details rows and playback controls rows.

Addresses the feature request because the row is provided in these callbacks.
Playback controls rows already supported item selection but this change fixes an issue
with ping-pong selection on action adapter updates.
Also add support for multiple details rows.

b/16354712

Change-Id: I0d3ce47d19514937b6d0d7a6eaeb61275c7dac85
ctionPresenterSelector.java
ontrolBarPresenter.java
etailsOverviewRowPresenter.java
laybackControlsRow.java
laybackControlsRowPresenter.java
314e0698cf026f83cb9d7ff13ae31cd913845604 20-Aug-2014 Dake Gu <dake@google.com> onLayoutChildren() should not interrupt SmoothScroll

Avoid align to focused view if it's in smoothscroll.

b/16659420

Change-Id: I294fd3bff21bd78a4335e091e68c6a3982d7f50b
ridLayoutManager.java
8b6327deb6bbacc335b098894cbbbdc1060310f0 20-Aug-2014 Dake Gu <dake@google.com> GridLayoutManager: handle padding change properly.

When we change the padding, we are expecting child views
to offset their left/top position. Since fast layout position is
based on scrolloffsetprimary/scrolloffsetsecondary.
Changing the padding should also update the scrolloffsets.

b/17135547
b/16320658

Change-Id: I15d90e7bc96884157a7f509f29aa17630f546e00
ridLayoutManager.java
139d69f76bbc189571db2d3f3da6812af3611cc3 20-Aug-2014 Craig Stout <cstout@google.com> Merge "Fix deprecated docs tag." into lmp-dev
0bc1aae85ac55af50c2debfe711505093fd3626a 20-Aug-2014 Craig Stout <cstout@google.com> Fix deprecated docs tag.

Change-Id: I64c67c8bb70a9780a32ce388f655cdabbf638848
hadowOverlayContainer.java
af9a85fd1ea6701770622bc73a1056a90d554cba 20-Aug-2014 Dake Gu <dake@google.com> Merge "fix bug sharing recycling view between rows" into lmp-dev
53a46b5723708bbb223084ebf3a4fbf6ea4616ae 20-Aug-2014 Dake Gu <dake@google.com> fix bug sharing recycling view between rows

The view's parent is changed from one horizontalgridview to
another.

b/17108202

Change-Id: I92aad74952ef7bcf8a5e626e0c73620c31692054
istRowPresenter.java
erticalGridPresenter.java
14b5ad0db56bbee8966f3f04ea4a0d6cc93ebcf8 19-Aug-2014 Craig Stout <cstout@google.com> Add back two parameter initialize to fix TvSearch build.

Change-Id: Ibf2bbaf1a06aa0e2b8756d5aa9d9c7586d831b29
hadowOverlayContainer.java
ca48c80e6b6d90f6362144950c5f20a8f6839e9d 19-Aug-2014 Brian Carlstrom <bdc@google.com> Fix javadoc breakage from 4f34a05cdf73b68c3b2eb8678f740ab15225126a

Bug: 16687089
Change-Id: Ifb4424f5d9272887bdb0dcc5466a178a26c01c9d
hadowOverlayContainer.java
e30bdac5029bb58b4dc39fe155f58c79ebb41cbe 20-Aug-2014 Tim Kilbourn <tkilbourn@google.com> Merge "Add javadoc for region visibility methods on BaseCardView." into lmp-dev
71545370fce2dc3c104fd5698a58189721101f1e 20-Aug-2014 Tim Kilbourn <tkilbourn@google.com> Add javadoc for region visibility methods on BaseCardView.

Bug: 15575706
Change-Id: Iba71421d0b5f253e4658f8cc52e89f06afe5c21e
aseCardView.java
72bcfa039b9278617c9efb0ebf61c3b92694110b 19-Aug-2014 Dake Gu <dake@google.com> Merge "fix bad alignment after item was removed" into lmp-dev
d2104835a233e64b3b90182913542e58276aeb47 19-Aug-2014 Dake Gu <dake@google.com> fix bad alignment after item was removed

b/16657786

Change-Id: I1a00a035175950d77cbc6d349898071290ce397e
ridLayoutManager.java
4650f15e6a2427dd7cfcfb4d36fba0f7e47fb926 19-Aug-2014 Dake Gu <dake@google.com> Merge "GridLayoutManager: Tracking selected position change when adapter changes" into lmp-dev
d182feca369cfefe1cedad624ead716a99cca713 19-Aug-2014 Dake Gu <dake@google.com> GridLayoutManager: Tracking selected position change when adapter changes

fixed b/17087493

cleanup and remove unused prelayout code.

Change-Id: Ia2a4adfe73600931a678ec6dcd2c4a6d15dfec99
ridLayoutManager.java
329286648ed7e32712628504b9cf1801a099d2c8 19-Aug-2014 Craig Stout <cstout@google.com> Merge "Add rounded corners to leanback "cards"." into lmp-dev
4f34a05cdf73b68c3b2eb8678f740ab15225126a 15-Aug-2014 Craig Stout <cstout@google.com> Add rounded corners to leanback "cards".

b/16687089

Change-Id: If8997998304c5fd22823f2cf95677be90e35c136
etailsOverviewRowPresenter.java
istRowPresenter.java
laybackControlsRowPresenter.java
oundedRectHelper.java
hadowHelper.java
hadowOverlayContainer.java
erticalGridPresenter.java
dbfb5013ef4647e61d96a31db67071afc9c1c3b8 19-Aug-2014 Dake Gu <dake@google.com> Merge "Use a foreground instead of itemdecoration for default row selection effect" into lmp-dev
210401c0fd2e95b6e08b656b9dca08f4e7eef08e 19-Aug-2014 Craig Stout <cstout@google.com> Merge "Cleanup playback control actions." into lmp-dev
386b06a44a1f46327f045dbb3ae1bebadbcbfed7 18-Aug-2014 Craig Stout <cstout@google.com> Cleanup playback control actions.

b/17112170

Change-Id: I53617e154964851b868be35f045dcbe66191c42e
laybackControlsRow.java
630f82ae5e6b9c500d20ea4db4ce44a604c7e8eb 15-Aug-2014 Dake Gu <dake@google.com> Merge "GridLayoutManager: smoother scrolling" into lmp-dev
dafdf6a770fb84c1228f442db64550aae6fc11ae 15-Aug-2014 Dake Gu <dake@google.com> GridLayoutManager: smoother scrolling

Use SmoothScroller when scroll to offscreen items.

b/15546722

Change-Id: I4d8abba9a376771993bc0bcff09d86b340baed69
ridLayoutManager.java
cfad630a58857f3740bcc422ba73258ed786433d 15-Aug-2014 Dake Gu <dake@google.com> Merge "Prevent recyclerview scrolling in transition" into lmp-dev
709bb7083a089e788d84ffa81f2c4f60a1bc8cf2 15-Aug-2014 Dake Gu <dake@google.com> Prevent recyclerview scrolling in transition

Both scrolling animation and ChangeBounds animation will change the card
position and cause card being put at random position.

b/16952270

Change-Id: I628230e32088cc9bb43908f9076a32877c685bd0
aseGridView.java
ridLayoutManager.java
istRowPresenter.java
owPresenter.java
adf55abedd17eb9484d03da4b521209f15724f1f 15-Aug-2014 Craig Stout <cstout@google.com> Fix shadow on playback controls card.

b/16687092

Change-Id: I3c58089993868b880eaa0deb736b0a064e44aab0
laybackControlsRowPresenter.java
hadowHelper.java
b23ee09bf4aee03bc403abf39016c8ca5ecf301c 14-Aug-2014 Dake Gu <dake@google.com> Use a foreground instead of itemdecoration for default row selection effect

Most of time vertical grid view only has ListRow, but in order
to handle possible default row selection effect, it always add
item decoration.

Switch to use a foreground of RowContainerView for the dim effect.

Disable not needed overscroll effect for TV.

b/17044705

Change-Id: Id48b5ff595f6b2efe70599d1255ceba42ca35966
aseGridView.java
istRowPresenter.java
owContainerView.java
owPresenter.java
aa67105babce5fb14e1f39b57d4c84ce634afa62 14-Aug-2014 Craig Stout <cstout@google.com> Fixes for playback controls "more actions".

b/17031274

Change-Id: Icde9524cb5bce1c3f61826bf1cd0d8f224663cb1
ontrolBarPresenter.java
laybackControlsPresenter.java
laybackControlsRowPresenter.java
95400e6d31a1ac09e48cb8944a79b7250484aa4c 09-Aug-2014 Dake Gu <dake@google.com> DetailRow: Dont focus to button during transition

fix No.2 of b/16900335.

This is not stricly following the ux spec because running
the fading animation of parent viewgroup and a background fading
animation at the same time is really slow. The button fading
is started after activity transition is done.

Also clean up and removed ChangeBounds workaround, (reparent) is no longer
used. Moved classes to transition package, it is used by both widget
and app package.

Change-Id: I00463642843b3f3ef9c9845de451712d65745a89
aseGridView.java
etailsOverviewSharedElementHelper.java
db40bbb47b4449fe36875f9eec4471d9864f0b05 13-Aug-2014 Craig Stout <cstout@google.com> Merge "PlaybackOverlayFragment positioning and spacing polish." into lmp-dev
d20507e0f5ac7ad021f42ca87c294787246f0591 13-Aug-2014 Craig Stout <cstout@google.com> PlaybackOverlayFragment positioning and spacing polish.

b/16987129

Change-Id: Ie450ae9c5f493ae6eeb33f454dbe66ce920b97fc
laybackControlsRowPresenter.java
dd0b7f7577a5b82aca264fc428b12e53301b1270 13-Aug-2014 Craig Stout <cstout@google.com> Merge "Playback overlay animation polish." into lmp-dev
836443f4a3b69eb7a88ffeb65a39e11439dee55e 13-Aug-2014 Dake Gu <dake@google.com> add background for transparent image

b/16989401

Change-Id: Iee87604593146e7d27704d8f155f2facb85370e2
etailsOverviewRowPresenter.java
6b2e5b5117f1b8dfafbd81b995bb423ab0297564 12-Aug-2014 Craig Stout <cstout@google.com> Playback overlay animation polish.

b/16980270

Change-Id: I01476bbd239ae6ba850573935a1df1de8bb105db
laybackControlsRowPresenter.java
3e91a20766ee7aea2bd2a8282425b0d61cd44376 11-Aug-2014 Craig Stout <cstout@google.com> Optimize no-fading-edge case.

setWillNotDraw(true) in that case.

b/16952580

Change-Id: I6cbec9e5cfb4789aac2209f39f528999cb9907ed
orizontalGridView.java
f0e485de16a48547b1c6b272cf005d0b80b92e79 10-Aug-2014 Craig Stout <cstout@google.com> Fix action button selection backgrounds.

b/16799117

Change-Id: Iea26e35c63439f199d0300d5ca3f158161f2a09f
orizontalGridView.java
31b1448fe2a88d6bd338c42f19e40ddbf903cee4 08-Aug-2014 Dake Gu <dake@google.com> Merge "Set background on right panel if no margin on imageView." into lmp-dev
ae2614fe4c86c79344dc7dcb07777143b2fbd0d6 07-Aug-2014 Dake Gu <dake@google.com> ImageCardView: add methods for change info area background

b/15704903

Change-Id: I113c7be0b5b425371b536dfe252be21bc9e83aae
mageCardView.java
72a2146f4c3e6dbb84a5f9f92e7ab42d142dab04 08-Aug-2014 Dake Gu <dake@google.com> Set background on right panel if no margin on imageView.

Avoids thin color band on bottom of imageView especially in
transition.

Change-Id: Ieae86089e0cbe8fa36ea9277c90e7cdcf2db6c10
etailsOverviewRowPresenter.java
etailsOverviewSharedElementHelper.java
18c8048f17940359b8bce99cb46d24337bff8997 07-Aug-2014 Dake Gu <dake@google.com> DetailRow: Allow access details ViewHolder from row ViewHolder

Details row's ViewHolder is not intended to be subclassed.
Details Row has three parts: image, actionlist and details.
Instead developer should only replace detailsPresenter.
Leanback lib has a strong restriction so that it can change
the DetailsRowPresenter without breaking app's code. A typical
example is adding transition support to detail row that animates
images, action list and details.

Adding the access to details ViewHolder eliminates needs for
subclassing ViewHolder and put stuffs in. Instead, developer
should put stuffs in details presenter's ViewHolder.

b/14407649

Change-Id: I3b1c9d3fd7f551ad08b01a28a8964874a2025b88
etailsOverviewRowPresenter.java
b0181a77ce38f75a7d218745a330c5d80daacfb6 07-Aug-2014 Dake Gu <dake@google.com> matches part of leanback transition ux design

Change-Id: Id576015f7e36b3a8754e93c87726c635106bc8a5
etailsOverviewSharedElementHelper.java
dcc8de5c9a9a07474c5dac86660f0bbc82eaabce 06-Aug-2014 Dake Gu <dake@google.com> add Ripple click effect for cards

Change-Id: Icfef1c785deba51c4c64f7a3dabd8ea4335a03b0
aseCardView.java
372d07bb41510d91a6a662a1906aceb0ee759481 25-Jul-2014 Craig Stout <cstout@google.com> Add view fading support to PlaybackOverlayFragment.

Includes auto-tickle on input.

Change-Id: I58d1f6d87870d06527b3b80f7fedcdeab1b3cb6e
aseGridView.java
1223c56dd703a4a7725a4abf8c091d68348a2a53 05-Aug-2014 Dake Gu <dake@google.com> Merge "ImageCardView: add method to set drawable without animation" into lmp-dev
4cc255c1c9ce5f3a718970b6e0be2c3ae6abf9ed 31-Jul-2014 Craig Stout <cstout@google.com> Support for item selection in playback controls.

Change-Id: I620626efb69dbee0b1ba3ba87ef8b1a495059fe1
ontrolBar.java
ontrolBarPresenter.java
laybackControlsRowPresenter.java
aa93f6777233b789feb14d95d900b158d0ac4841 31-Jul-2014 Craig Stout <cstout@google.com> Fixed spacing of controls.

Change-Id: I56286e1b48c75c45fe5046a0aee2e2363a25558b
ontrolBar.java
ontrolBarPresenter.java
laybackControlsPresenter.java
ada0432e54a7a69478ef648523a8a66bc82861e9 05-Aug-2014 Craig Stout <cstout@google.com> Merge "PlaybackControlsRow actions improvements." into lmp-dev
19025301f907b7b706bec652304b39761086e39b 26-Jul-2014 Craig Stout <cstout@google.com> PlaybackControlsRow actions improvements.

Add outline and solid states for thumbs actions.
Use new MultiAction where applicable.
Shuffle now supports configurable highlight color.
Repeat icons updated.
Add HighQualityAction and ClosedCaptioningAction.
Uses styles to allow icon overrides for stock actions.

Change-Id: I0db4e4695252f963e6ac171ec12fde1c3358953b
laybackControlsRow.java
502e6531c4ee86b6671cd692bd3e2d0ffd5d65c4 05-Aug-2014 Craig Stout <cstout@google.com> Fix for measure when views have been removed.

b/15919486

Change-Id: Ib85e72d0dbabac985a33aa714f51082af37c3eab
ridLayoutManager.java
e5b67be786d519377ae275ef76f3ad72187183d5 28-Jul-2014 Craig Stout <cstout@google.com> Support for varying margins on current time and total time labels.

Change-Id: I7286c38f345184a47c6dd5ebcbb3ac2961dcc000
laybackControlsPresenter.java
laybackControlsRowPresenter.java
44f004b2612b04510a09a4c1e33f5a109582d669 02-Aug-2014 Craig Stout <cstout@google.com> Fixes to search orb focus animation.

Quick scale up and scale down.

b/15492575

Change-Id: I8379e1ce16110faedec275d5c24b07c1d92c8218
earchOrbView.java
558f7b70035c50045908efca5f4f3d65df685cac 02-Aug-2014 Craig Stout <cstout@google.com> Seach orb scale on focus includes the icon.

b/16324433

Change-Id: I8c0a028ca19eb2c6fcd12380004502142e4f5a14
earchOrbView.java
932feed83c3dbc49c9855a1736afd9d5a3428b8e 04-Aug-2014 Dake Gu <dake@google.com> ImageCardView: add method to set drawable without animation

b/16790928

Change-Id: I4e248c09edd90617bf4d4fba60765ff3e15e960a
mageCardView.java
6e0b2c07dacd32bec0d2745631d4f486d366f91e 31-Jul-2014 Dake Gu <dake@google.com> Merge "fix NPE when postAnimation multiple times" into lmp-dev
f4482e64217e38c0ad8f344da0e90e9e1cf3aa11 31-Jul-2014 Dake Gu <dake@google.com> fix NPE when postAnimation multiple times

Change-Id: I47b25aef0abe0b01616e4a7f8b264470def07787
etailsOverviewSharedElementHelper.java
0e9492360e123589ac8c54e0668901d567f788a6 26-Jul-2014 Craig Stout <cstout@google.com> Default focus goes to the middle control.

Change-Id: I1ffbd32993a796d904e1db1ace2d2ad89f5a8169
ontrolBar.java
058f08d235aa4188df24ed1fe12cd8673dd2f429 25-Jul-2014 Craig Stout <cstout@google.com> Merge "Add support for progress to playback controls." into lmp-dev
6dca725412977bb56b933bdec120e31909233cdb 22-Jul-2014 Craig Stout <cstout@google.com> Add support for progress to playback controls.

Change-Id: I63f0e93c9151cfa4ef4b4ade8ee2b9502771d4e8
laybackControlsPresenter.java
laybackControlsRow.java
laybackControlsRowPresenter.java
7ab1edf2b49f3cdcb9db7a1c60d0dc1e17a9aef7 16-Jul-2014 Craig Stout <cstout@google.com> Add PlaybackOverlayFragment and associated row and presenters.

Progress bar is not functional yet.

Change-Id: I6217385433d7c6621c68de68da93257efebe3c5b
ontrolBarPresenter.java
ontrolButtonPresenterSelector.java
laybackControlsPresenter.java
laybackControlsRow.java
laybackControlsRowPresenter.java
resenter.java
b1456a70fd1200bc6d9574edb030c9cb69c8c790 24-Jul-2014 Craig Stout <cstout@google.com> Merge "Add PlaybackOverlayFragment and associated row and presenters." into lmp-dev
4121f22713bbed467a977ec0d867ef53989ff374 18-Jul-2014 Dake Gu <dake@google.com> Add support for hero transition into detail overview row

b/15024618

Change-Id: Ibaadcd543b6cee9b8085d7c89f24b4cb88004a0c
etailsOverviewRowPresenter.java
etailsOverviewSharedElementHelper.java
f6729841c35fa9db061cdfe71c1aacef613a4e96 19-Jul-2014 Craig Stout <cstout@google.com> Merge "Pass the data object not the row to AbstractDetailsDescriptionPresenter." into lmp-dev
7d1196948811bc5f1b7ec0cdc74340fca60fc8e2 19-Jul-2014 Craig Stout <cstout@google.com> Pass the data object not the row to AbstractDetailsDescriptionPresenter.

This enables use of the description presenter by other rows such as
playback controls.

Change-Id: I306dc0eda76e36782b9074e80b48842d07053a8f
bstractDetailsDescriptionPresenter.java
etailsOverviewRowPresenter.java
cef7b4942bacc862ea4eac66952e9f7aba027d18 15-Jul-2014 Yigit Boyar <yboyar@google.com> Update RecyclerView scroll listener API

This change adds RecyclerView as a first parameter to the scroll related callbacks.

It also fxies a bug where scroll callback was being called w/ the intended scroll
amount instead of the real scroll amount.

I also changed it to be an abstract class instead of an interface to make future
changes easier.

Bug: 16054949
Change-Id: I99a1f91dcd442c1ac3ad1ed7dbf4598d1cee9c28
etailsOverviewRowPresenter.java
152a664517049dab6374d779cdbf2274d4005d0c 17-Jul-2014 Dake Gu <dake@google.com> Merge "DetailsOverviewRowPresenter: Add method to get overview view" into lmp-dev
7728d53c5c50e8ed807e8f4a189e34684de04800 12-Jul-2014 Craig Stout <cstout@google.com> Fix details overview binding when drawable is null.

b/16237144

Change-Id: I5820c296b535aaadc52077711f6e0ca47c58199d
(cherry picked from commit 91bbebf55c09a58325c1836fc9f52fd82bf5fd09)
etailsOverviewRowPresenter.java
b34a2372153298ebdc3e148e1c1f3b3924efab08 15-Jul-2014 Dake Gu <dake@google.com> DetailsOverviewRowPresenter: Add method to get overview view

Use the overview view instead of imageview for activity transition.

Change-Id: If350a536ffc3294635ee9feffc10b78e1abd06f9
etailsOverviewRowPresenter.java
73d17f7cda162797e3d10e47445bf44b2c842170 10-Jul-2014 Jerome Poichet <jpoichet@google.com> Merge "Fix initial focus in SearchBar"
afe1da48b4673f64c67c130237dd485a34a69c1b 10-Jul-2014 Dake Gu <dake@google.com> fix doc build - re-add @deprecated

Change-Id: Ib7c09752ac7e9acb0e55eacd3749d6347c2f3db2
erticalGridPresenter.java
3cbe5c34f9710da1ab935b45f568995b12219ca2 10-Jul-2014 Alan Viverette <alanv@google.com> Remove @deprecated from VerticalGridFragment/Presenter doc

Fixes docs / update-api builds target.

Change-Id: Id4c2d4942070109b627166eb8ae97eafd193f5ee
erticalGridPresenter.java
2680c6a2ed5b2567d9709a5adb419728e062d686 11-Jun-2014 Jerome Poichet <jpoichet@google.com> Fix initial focus in SearchBar

- Turns out I was explicitely requesting focus for the EditText when
attaching to the window
- Start recognition automatically on start

b/15527718 In app search in Play Movies causes keyboard to flash and disappear

Change-Id: I1c746da01e3746dd62317ad2282a794f21a8049c

Conflicts:
v17/leanback/src/android/support/v17/leanback/widget/SearchBar.java
earchBar.java
947dbf076cd019e3c26217fbc7aa21e860d68044 10-Jul-2014 Dake Gu <dake@google.com> Use new listeners in VerticalGridFragment

Change-Id: I77f6a8f90bf2bd9508ec44a047c2aceeddd1b7b0
erticalGridPresenter.java
13fa060612629dc3882f57f5530d4f72f050c12d 09-Jul-2014 Craig Stout <cstout@google.com> Merge "Details row may disallow scaling up of images."
e23ea69ec54eb70d17239ba671fcd75563780553 08-Jul-2014 Craig Stout <cstout@google.com> Details row may disallow scaling up of images.

Margin around image now used in some cases.

b/15762107

Change-Id: I78f12b51cc5a4c550d407a33e8f56c09f687e8da
etailsOverviewRow.java
etailsOverviewRowPresenter.java
9de363b8db05106b03d115c266859fe200d41db7 09-May-2014 Dake Gu <dake@google.com> Preparing for transition

In order to make transition work, user needs
to get current clicked view, added view parameter
in all our listeners and deprecated old version.

add methods to access imageview of cardview.

Change-Id: Ibccfae4bf13c623047475f2147a685b10e44c278
etailsOverviewRowPresenter.java
mageCardView.java
istRowPresenter.java
nItemClickedListener.java
nItemSelectedListener.java
nItemViewClickedListener.java
nItemViewSelectedListener.java
owPresenter.java
f2df33adb72d7a4138d00128bf66751ad77ecaba 28-Jun-2014 Dake Gu <dake@google.com> Merge "Use ViewCompat for postOnAnimation"
49c83b12201dde5b93d4eca3d44478e0c967a2e6 26-Jun-2014 Yigit Boyar <yboyar@google.com> Pass recycler to LayoutManager#onDetach callback

Bug:15736907
Change-Id: I6cd50800ebae0ff10b99665fcda77b0da411065c
ridLayoutManager.java
e3582bec2e51351a3116612ad529d7eb29a82bb7 27-Jun-2014 Dake Gu <dake@google.com> Use ViewCompat for postOnAnimation

Change-Id: Ia1013fc3830258eb6f3a7d4dd9db664597ce18ac
ridLayoutManager.java
3de146291132c3d463941e34f0609a3dd15d6784 27-Jun-2014 Dake Gu <dake@google.com> Fix NPE when detached RecyclerView schedule onLayoutChildren()

b/15911289

Change-Id: I99ef70d585147f7f8d8a9d0923e8e667fb780d19
ridLayoutManager.java
4fdd3589c982860b831c0fad63c0082cb9079f47 24-Jun-2014 Craig Stout <cstout@google.com> Allow developer to specify search orb colors.

b/15774559

Change-Id: Ie8522f55b1dedf81410eaf60980509d1d8756fd5
earchOrbView.java
itleView.java
74ecd2848a6ceaed6a4dcaed4748b4fb688de020 19-Jun-2014 Dake Gu <dake@google.com> VerticalGridFragment: use z-order instead of customized drawing order.

Change-Id: I1a6efa101416b81cf759dd63dd76c3a50ef8cce5
erticalGridPresenter.java
cd3fcab8bbbea194b72422f3977b8488ef2ad207 19-Jun-2014 Dake Gu <dake@google.com> Merge "ListRow: Use Z order instead of customized drawing order"
0fcad32410ad29031630bb9cc2da35d33a4aa906 19-Jun-2014 Dake Gu <dake@google.com> ListRow: Use Z order instead of customized drawing order

This makes much sense that drawing order is swapped when
z values comparison swaps instead of immediately switch
z-order on focus change while new focused view has not
scaled up.

Change-Id: I78b7e4bff29d8ebc0ce128d5783f0c89e29a2bbe
aseGridView.java
istRowPresenter.java
hadowHelper.java
d2fd82409150a29da24eb97009d1fa59ec0a0f07 19-Jun-2014 Dake Gu <dake@google.com> GridLayoutManager clean up code never used

Change-Id: I46660343b16ad5eb6e811175181656f4654080c1
ridLayoutManager.java
72761b833b535ef717ff4241f30b8b79ad9317bf 19-Jun-2014 Dake Gu <dake@google.com> Merge "GridLayoutManager clean up code never used"
ac98cd2905e0bac5ace2d4527048ca5a4a5871ce 19-Jun-2014 Craig Stout <cstout@google.com> Merge "Fix action bar fade right."
819b4e55bcf37847548a55c5dac0dfa8323975f6 19-Jun-2014 Craig Stout <cstout@google.com> Fix action bar fade right.

Must ensure that views have been laid out before checking bounds.

Change-Id: If1ccab473d8b7212f2c36a6b1843c50ffda340d3
etailsOverviewRowPresenter.java
08a42433300b4617bad27bda1214e12ca7854adc 11-Jun-2014 Dake Gu <dake@google.com> GridLayoutManager: Fix WindowAlignment algorithm

The current algorithm makes assumption that if the scrollCenter of a view
is before the middle point of window, we will align the first item to
start edge. This does not work if the first item is too large, e.g. in
Search, the item's center position is after the middle point of window.

The fix is to add more flags for algorithm so if it's first item, it should
always be aligned to start edge of window.

b/15547766

Change-Id: I81f8b68c1739b7df1fa08d94d3a23b6c9e495747
ridLayoutManager.java
indowAlignment.java
69e74bd8956577d9a3414b81ec661fd5fee42e19 16-Jun-2014 Craig Stout <cstout@google.com> Add L-only shadows to search orb and details overview.

b/15676752

Change-Id: I616c31824c741eacfbdbe8526c530c5617012cb3
etailsOverviewRowPresenter.java
earchOrbView.java
hadowHelper.java
80d04d2265fe28800fcbc7e8cc7d6d229a7913d8 12-Jun-2014 Tim Kilbourn <tkilbourn@google.com> Update more leanback javadocs.

Bug: 15149629
Change-Id: Ie98f9ab4a6ab555e06626e692fc2a75d207840e9
etailsOverviewRow.java
etailsOverviewRowPresenter.java
3d5bfaf87ae4e70c8d11abc06dde8256bbafc0c6 12-Jun-2014 Tim Kilbourn <tkilbourn@google.com> Merge "More leanback javadoc updates." into lmp-preview-dev
beeaa973d1b5bd79ee8ae798141231d9a315eba7 12-Jun-2014 Tim Kilbourn <tkilbourn@google.com> More leanback javadoc updates.

Bug: 15149629
Change-Id: I53221f65d79f25e6683af4e5205fecb8e666aed8
ction.java
rrayObjectAdapter.java
ursorObjectAdapter.java
bjectAdapter.java
c22050c807ebd3f67573a8a48155e02bafb8782e 12-Jun-2014 Jerome Poichet <jpoichet@google.com> Merge "Improving overall memory usage" into lmp-preview-dev
c8737e35c611362db621b25656b57be0c2b8a306 12-Jun-2014 Jerome Poichet <jpoichet@google.com> Improving overall memory usage

- Making sure we release SoundPool when done
- Preventing multiple recognizers from being started if pressing voice
repeatedly.

b/14057166 Got a "can't open microphone" error, OOM

Change-Id: I8082036962d2f536cee88677d5398af08af575f4
earchBar.java
961a8f12d1fbeeb86ea066f9f2c693abb2ce50f2 12-Jun-2014 Tim Kilbourn <tkilbourn@google.com> Update leanback javadoc.

Bug: 15149629
Change-Id: Ib3977c497f1fc0fd2a9cc8527347a85e8f1e8d40
aseCardView.java
mageCardView.java
ow.java
owPresenter.java
94920246f7f5a0d4dae794058020cd67c5701056 10-Jun-2014 Dake Gu <dake@google.com> GridLayoutManager: Do not declare predictive layout support.

Because GridLayoutManager hasn't done any predictive layout,
it shouldn't declare support it. Use a different way for
enable/disable itemanimator.

Bug: 15542012
Change-Id: Ieb71f4badb56496c20c043e55043e5e5d1eec1da
aseGridView.java
ridLayoutManager.java
c35968d173f900d8024bdf38174e2225c9a7f311 28-May-2014 Chet Haase <chet@google.com> Enable simple automatic item animations for RecyclerView

RecyclerView now has automatic animations for add/remove operations requiring
no changes from LayoutManagers. This approach, which is enabled by RecyclerView
having a non-null ItemAnimator (the default behavior) and LayoutManager returning
false for supportsPredictiveItemAnimations() (the default behavior), enables
LayoutManagers to run normally, with only one layout pass and requiring no extra
logic to predict placement of appearing or disappearing items. Appearing
and disappearing items will simply be faded in/out, since the RecyclerView lacks
the knowledge or where to animate the views from/to.

Issue #15542012 Simplify RecyclerView animations

Change-Id: I6219210c9b0ca32535182c1d233076a355fe0671
ridLayoutManager.java
fb413100a0ce8c0b68a1c5f6dd9cee5e0f981700 10-Jun-2014 bulic <bulic@google.com> Removed setting of search orb defaults in xml

doing it programatically to avoid forcing users of SearchOrbView to set
their theme to Leanback
b/15515406

Change-Id: I6717449e18ac01121fb43dc67ba6210f17e38c5b
itleView.java
5a59bde085588f95dc067bd1ed64a940f355343c 09-Jun-2014 bulic <bulic@google.com> Fixed titleview/searchorbview crash

-set bright color to be null
-use correct defaults (even if theme is overriden)
b/15515406

Change-Id: Id8077fe50ecc4e1d1e436ffc586bb23a9ac55fe2
earchOrbView.java
itleView.java
56603224aeccbed8b7a1bdb303725fa15b09b820 09-Jun-2014 bulic <bulic@google.com> Merge "Added bright color parameter to search orb" into lmp-preview-dev
decb4e284bb5befddcc3812564dab41049fca303 09-Jun-2014 Jaekyun Seok <jaekyun@google.com> Fix build breakage

Change-Id: I70d2dad01c2cc6da222b7e2e92246e8f3c0bb47b
earchBar.java
a1798f408d3acafffc93cce1b309a54dce52d22d 08-Jun-2014 Jérôme Poichet <jpoichet@google.com> Adding search tones

b/15479577 Tone missing when starting voice search in-app

Change-Id: I53782b0a734d5d6f9cc2fa05b82b6f7f614f054c
earchBar.java
8b55ff20146055bb0c4c5544814fcf530e03649a 06-Jun-2014 bulic <bulic@google.com> Added bright color parameter to search orb

b/15427416

Change-Id: I10c1d03db62b25d28cd573ff7fa7a491648a3ac9
earchOrbView.java
4c94efdb022031d2cbf5e80c8aa3703b01d78f68 08-Jun-2014 Dake Gu <dake@google.com> fix bouncing effect of selected card view

When card animation is enabled, the scale pivot changed dramatically
because card height is changed before/after browse transition without
animation. There is much less bouncing in "card -> card navigation"
because pivotY is animated with card height animation.

The fix is to allow pivotY being at a fixed location regardless info
height. Pivot values also need to be transfered to shadow container
since the actual scaling is done on shadow container.

b/15413508

Change-Id: I9b2ab7e9ef8d961d3a5072bf47f2e68e9b15f3d9
aseCardView.java
hadowOverlayContainer.java
8d610b69ca210524b3d87f42abc07029297609b8 08-Jun-2014 Tim Kilbourn <tkilbourn@google.com> Merge "GridLayoutManager: fix some animation jumpiness" into lmp-preview-dev
78093fbede6ea2d189e5d0ad176466ef140e950c 07-Jun-2014 Tim Kilbourn <tkilbourn@google.com> Merge "BrowseFragment javadoc cleanup." into lmp-preview-dev
40827ad908a3dfaebc496004e2c5690195000a76 06-Jun-2014 Tim Kilbourn <tkilbourn@google.com> BrowseFragment javadoc cleanup.

Bug: 15149629
Change-Id: I7c598d8d27127fd8acd8e93f7557e6cb1037c0b3
ow.java
777317218bacac9d5f0979306608efc217055921 07-Jun-2014 Jerome Poichet <jpoichet@google.com> Merge "Fixing default values" into lmp-preview-dev
033fd1bdda0e33e4f81e323f61ab10840cc649a2 07-Jun-2014 Tim Kilbourn <tkilbourn@google.com> Merge "Details overview image now scales." into lmp-preview-dev
937f910ceb3364a1b84899c2b5f1ff5384f38f84 07-Jun-2014 Jerome Poichet <jpoichet@google.com> Fixing default values

- Fixing the way we retrieve default values to avoid crash when not
setting any attributes
- Adding documentation for the widget, since this is starting to become
a "first" class citizen

b/15473391 Regression SearchOrbView crashes when no attributes are passed

Change-Id: Icbce9e9a452b124968776bdeb00d89752697b76d
earchOrbView.java
6f2623c3520b1fde1e30bce75d4e7cd38bc7c156 07-Jun-2014 Jerome Poichet <jpoichet@google.com> Merge "Fixing SpeechRecognizer leak" into lmp-preview-dev
50ea3557b75826b3f51480715df1973472e345c4 07-Jun-2014 Craig Stout <cstout@google.com> Details overview image now scales.

b/15394334

Change-Id: I1007b9bbcd9e6f649d2589654aebb879294dea27
etailsOverviewRowPresenter.java
66ae15f5fa8b6714fa78e6d3f94fe85af06ddabd 07-Jun-2014 Dake Gu <dake@google.com> GridLayoutManager: fix some animation jumpiness

Looks like a typo that cause secondarySize is not updated in onMeasure()
and later a posted Runnable update the secondarySize.

Also focused item maybe out of bounds if we scroll really fast. So
we should measure every child.

part of b/15413508
b/14885970

Change-Id: I7478ea39f1fb429f483b5f25b69118b66c086c21
ridLayoutManager.java
4fbaf9b54d7f9723f3ec5c320db9cea887eeff7b 07-Jun-2014 Jerome Poichet <jpoichet@google.com> Fixing SpeechRecognizer leak

Since there is no lifecyce on SearchBar, moving the ownership of the
SpeechRecognizer to the SearchFragment.

- Creating a SpeechRecognizer when SearchFragment resumes and pass it to
the SearchBar
- Destroy SpeechRecognizer when SearchFragment pause, and unset it in
the SearchBar
- Ensure recognition has a recognizer before starting and stopping

b/15460657

Change-Id: I95dc3f37b5c4ae7dbd337dcc90d28c6ee17f8f09
earchBar.java
2fb330f7a11a5c87d4ea8b19a97a99f65b81b42e 06-Jun-2014 Alan Viverette <alanv@google.com> DO NOT MERGE Material theme

Change-Id: Idd8fd14c15da11134422511c8b64f8a24cde2f12
earchOrbView.java
ed57770cf2211040bffe0bddd55e7c28fb47a42a 06-Jun-2014 Jerome Poichet <jpoichet@google.com> Setting orb color later in the constructor

Turns out attributes to set the color were called before the animation
parameters were set, so the bright color was computed as being the same.

Moving attributes loading to a later phase in the constructor

b/15467438 Search Orb doesn't color shift when focused

Change-Id: If276015b187fdebe883f3fa83f0fffb5368c65c8
earchOrbView.java
f0e71182c62bba18e9d8098941a29c4f5031ce36 05-Jun-2014 Jerome Poichet <jpoichet@google.com> Adding search orb attributes

Adding color and icon as orb attributes so that McLauncher can customize
the orb as they wish

b/15455246 Add parameters to customize SearchOrbView

Change-Id: If4efc11c6beb17350739dd65e6f1c9e3975858f9
earchOrbView.java
a146b68648170a782838968dae9fe4497a3e80a9 06-Jun-2014 Dake Gu <dake@google.com> Merge "GridLayoutManager: fix NPE when adapter changed in scrolling" into lmp-preview-dev
b8f95f79fdba6860887d6826a9447cf15cea6d7d 06-Jun-2014 Jerome Poichet <jpoichet@google.com> Merge "Add API to provide suggestions (aka completions)" into lmp-preview-dev
911b1d9ec87dcaa9b4a5a3d4e13c54f21bf03398 05-Jun-2014 Dake Gu <dake@google.com> GridLayoutManager: fix NPE when adapter changed in scrolling

Seems like when playback activity pops, the adapter was changed
but scrolling task is still going on.

b/15004615

Change-Id: Iea86e0b9b582c3e0e0f3a435aa5092173642672d
ridLayoutManager.java
731066a59e10ddc7bb6c95d0b91b3e0e11e10396 05-Jun-2014 Craig Stout <cstout@google.com> Add TitleView and use it to complete VerticalGridFragment.

b/15432740

Change-Id: I00740c265e76b93b943d402be452c74d889510e4
earchOrbView.java
itleView.java
2a4917392556a63a0d4d3d8ecbc55780e6e5303b 05-Jun-2014 Dake Gu <dake@google.com> Merge "GridLayoutManager: fix scroll bug" into lmp-preview-dev
6ef7396cd226efcce83389c5107166c121e25785 05-Jun-2014 Dake Gu <dake@google.com> GridLayoutManager: fix scroll bug

When we try a possible new maxScroll we need try with the newEdge.

b/15449400

Change-Id: Icb111eabb988538923b88f4bd52bb27ec7680929
ridLayoutManager.java
indowAlignment.java
9f7c2a242cf64f9790f28d0a103a0bea0b3640b7 05-Jun-2014 Craig Stout <cstout@google.com> Merge "Fix VerticalGridFragment focus navigation and title transition." into lmp-preview-dev
b04c500ecc9109673d0384e85f62f0485e3f6b4f 05-Jun-2014 Jerome Poichet <jpoichet@google.com> Merge "SearchOrbView shouldn't be invisible itself" into lmp-preview-dev
2ed0e8a36ac111a3661c56f5dbbe74cfe0696eee 05-Jun-2014 Jerome Poichet <jpoichet@google.com> SearchOrbView shouldn't be invisible itself

As McLauncher was trying to use SearchOrbView, it was discovered that
the widget made itself invisible. It really should be invisible by
default in the title bar, not the widget itself.

b/15435741 SearchOrbView widget is invisible by default

Change-Id: Ifbe0dbaa69a282289debf80974195c3b193a5928
earchOrbView.java
e5f2388b8d24876ebbd6daf302487bf452245d50 04-Jun-2014 Jerome Poichet <jpoichet@google.com> Add API to provide suggestions (aka completions)

b/15436910 Add API to SearchFragment to allow passing suggestions to IME

Change-Id: I53850dd74d99f7edb04739436c2b66c5dcae8bd0
earchBar.java
9020c0aec57b4e8994d66b7cd1a89c225e9bfa11 05-Jun-2014 Craig Stout <cstout@google.com> Fix VerticalGridFragment focus navigation and title transition.

b/15432740

Change-Id: I6ac533a88d8ce8b17aa28d3605e688536bfbb8e5
aseGridView.java
ridLayoutManager.java
01d63e7d432a412718d7c8a28b558744a372abcd 05-Jun-2014 Dake Gu <dake@google.com> Merge "GridLayoutManager: scroll limit check" into lmp-preview-dev
a9cd123e18f21ada648a8c715989c7b900a5c3e7 04-Jun-2014 Dake Gu <dake@google.com> Merge "dont unbind header text so the view can be fade out in transition." into lmp-preview-dev
f752e9582ac7fc97ae5090e76321343871edb810 04-Jun-2014 Dake Gu <dake@google.com> dont unbind header text so the view can be fade out in transition.

This is because we changed from removeView to recycleView when layout is disabled.
However we still want to use the recycled view during transition.

b/15417457

Change-Id: Ia499176117688e644edfba0030b112ea0a79585c
owHeaderPresenter.java
79b86b227e6794937ec311522b50e727f8eec263 04-Jun-2014 Dake Gu <dake@google.com> GridLayoutManager: scroll limit check

ScrollMin/Max are only updated when we added first/last
view or where fastRelayout may change first/last view position.

It's not necessary to invalidate the first/last view position
in every layout pass since most time they are the same.

however, we should invalidate scrollmin/max when the first/last
is not visible yet but current visible items already grow out
of the scrollmin/max range.

Tested on TV and tablet.

TODO: scrollMin/Max on secondary axis.

b/15414917

Change-Id: I125025a5865df69316dadc612b52b67d8f27a250
ridLayoutManager.java
taggeredGrid.java
indowAlignment.java
45ef49ba4d3b9bd0a4c9764749b3f9faa6c6abd6 04-Jun-2014 Craig Stout <cstout@google.com> Fix child selection listener dispatch.

b/15425688

Change-Id: I6e3e28074f6a4c163f400b5c9e99068154a3d6f8
ridLayoutManager.java
7746dd4ede9dba98bda6519c395f9ed452df8bf0 04-Jun-2014 Craig Stout <cstout@google.com> Merge "Fix text spacing on rebind." into lmp-preview-dev
aea109d1024c5fdd582b328b58eb8b52341d50d3 04-Jun-2014 Craig Stout <cstout@google.com> Fix text spacing on rebind.

b/15399014

Change-Id: I961a8eb5cee365e70fef412d7871890fccd2a6e6
bstractDetailsDescriptionPresenter.java
76c3b90228d8c4afc6d24c683e9c95f41ae619c9 04-Jun-2014 Jerome Poichet <jpoichet@google.com> Removing ununsed imports

Change-Id: Id398857ca752b9ac612d0e596da1cce58e6e3a6f
ctionPresenterSelector.java
ocusHighlightHelper.java
orizontalGridView.java
temBridgeAdapter.java
istRowPresenter.java
istRowView.java
nActionClickedListener.java
earchBar.java
hadowHelper.java
erticalGridView.java
e0a1253fccf626dbc9c0d3aaf03ab903d1485171 04-Jun-2014 Dake Gu <dake@google.com> Merge "GridLayoutManager: avoid redundant dispatchChildSelected" into lmp-preview-dev
3543308c80a5a0bc3a2401dc0368a99b754d65c1 04-Jun-2014 Craig Stout <cstout@google.com> Remove more actions view.

b/15409230

Change-Id: Ibfb2e3e08500bf736aa20c490cce0456b596d901
etailsOverviewRowPresenter.java
0d9c25bab934568d041d93281287f831fdd0c169 03-Jun-2014 Dake Gu <dake@google.com> GridLayoutManager: avoid redundant dispatchChildSelected

If it's fastRelayout, we fire dispatchChildSelected only on mFocusPosition
changes, this can avoid mutliple events fired by view size change animation.
If it's not fastRelayout, it can be a structure change, so we
always dispatchChild regardless mFocusPosition changes or not.

In scrollToView triggered not in layout, there is no structure change
so it will dispatchChildSelected only if mFocusPosiiton changes.

b/14807080

Change-Id: I5ac770181542955360c4d0531d5110694db04b89
ridLayoutManager.java
e0fc06a975f22a71c6d106a33feb4859ce8fe191 03-Jun-2014 Jerome Poichet <jpoichet@google.com> Merge "Handling missing RECORD_AUDIO permission." into lmp-preview-dev
66a714e3184c4be0d35dff3e9887f77ce84fa5eb 03-Jun-2014 Craig Stout <cstout@google.com> Merge "Further browse spacing fixes to match redlines." into lmp-preview-dev
4cd4cce277571385f4d1a56d5348578c38368cbe 03-Jun-2014 Craig Stout <cstout@google.com> Further browse spacing fixes to match redlines.

When not expanded, padding is greater for the selected row.

b/15328938

Change-Id: I97f2a40b542372a7f15ff6cfc30d7a23e74eb8a5
istRowPresenter.java
owHeaderPresenter.java
99f1278ee0fffafdba26a48d0482e2a30e8df591 03-Jun-2014 Craig Stout <cstout@google.com> Merge "Fix NPE when measuring with wrap_content and no items." into lmp-preview-dev
10960072d3c1f9c7f42f9ae77adbfb12f9aed138 03-Jun-2014 Jerome Poichet <jpoichet@google.com> Handling missing RECORD_AUDIO permission.

Added documentation on SearchFragment and SearchBar to note the
requirement for the RECORD_AUDIO permission.

Added documentation on SearchFragment and SearchBar listeners to explain
that submit can be called without any call to changed.

Check for RECORD_AUDIO permission, throw IllegalStateException when not
found when loading SearchBar.

b/15350629
b/15326734

Change-Id: I9b55fc76ecb438087d1d389e3555d2652ded68d9
earchBar.java
056561d81012983d2d27b8665c4aeabb427174cb 03-Jun-2014 Tim Kilbourn <tkilbourn@google.com> Set defaults for brand color and search orb color.

Bug: 15162080
Change-Id: I0c184ac1dd8f30744966fe0232c37a263c0bad96
etailsOverviewRowPresenter.java
92a959ab2b3c3c99aabb03cd999ff223763128da 03-Jun-2014 Craig Stout <cstout@google.com> Fix NPE when measuring with wrap_content and no items.

b/15369861

Change-Id: I338e2be5613442900e23ea4e1a590db7cc5f2482
ridLayoutManager.java
e748917a5661b0de79c7082267799f2530badde6 03-Jun-2014 Craig Stout <cstout@google.com> Set all views in a vertical grid to activated.

b/14467535

Change-Id: I9d75c8264a4e2a6b640170b4c382fa258e80ab99
erticalGridPresenter.java
9de682083d3da5b1127969ee1fd7b74561aa9acd 02-Jun-2014 Craig Stout <cstout@google.com> Fix view recycling.

GridLayoutManager must recycle existing views when rebound.
ItemBridgeAdapter must track view types globally.
Increase the max recycle pool size (defaults to 5).

b/15291691

Change-Id: I861da37f39e1a35d1d7bd38579269b814b736234
ridLayoutManager.java
temBridgeAdapter.java
istRowPresenter.java
83118b72d02074ee35f07ad0253579565c16882b 31-May-2014 Craig Stout <cstout@google.com> Fix visibility of "more" actions row view in details overview.

b/15344783

Change-Id: I2d2f74f1d90c1e1c4111671df6a66fb5dc19f987
etailsOverviewRowPresenter.java
37390806e43578a40f1275c3c0497eaa83971697 30-May-2014 Dake Gu <dake@google.com> GridLayoutManager: don't fire selection change event in prelayout.

This is not only duplicated, but also might be wrong with index mangled
by RecyclerView in prelayout pass.

b/15343493

Change-Id: I5960f67dd66c6f55814aadcc904b4bf200392a39
ridLayoutManager.java
853dbb9531de43103829847b1121ad049f930806 30-May-2014 Dake Gu <dake@google.com> Merge "use quantum shadow" into lmp-preview-dev
19312c5f247559a9483d874e62150c49d36aa478 30-May-2014 Dake Gu <dake@google.com> use quantum shadow

b/15186925

Change-Id: Ia4e129ff85566cda496fcb28f279c762980d6da3
hadowHelper.java
43329fc348a0134d4a3273796a6a9cf71dad04a5 28-May-2014 Craig Stout <cstout@google.com> Add Recycler and State parameters to LayoutManager.onMeasure.

Allows a layout manager to measure children when measuring itself.

b/14885970

Change-Id: Icad22a5e4d19b9827c4c601a364a83bd84883cd2
ridLayoutManager.java
a5d1266687a2448db606a34cb387b31745d2c035 30-May-2014 Dake Gu <dake@google.com> Merge "GridLayoutManager: supports item animation" into lmp-preview-dev
4200ae975bfd7e4dc2e5c2d838c070470fcb3e2a 29-May-2014 Dake Gu <dake@google.com> GridLayoutManager: supports item animation

Remove all GridLayoutManager animation code and use item animation
in RcyclerView.

TODO: there is a regression that hovercard resize animation is not supported
but we dont have a use case for now.

Fixed a NPE in scrollVerticallyBy

b/15079477
b/15004615

Change-Id: I67245bd0c2f6c3265a3b309b5f47e3f0c10ac6b3
aseGridView.java
ridLayoutManager.java
a7ba44025ec38541f429a830763ff799b5e5267e 30-May-2014 Dake Gu <dake@google.com> ArrayObjectAdapter: Add notifyArrayItemRangeChanged() and indexOf()

These are handy methods for user to use ArrayObjectAdapter.

Change-Id: Ib61cca110dbee893d5f53f19ae8be669c683a156
rrayObjectAdapter.java
efea02cbf3b1f69cbff4e98f859a521c95484fac 29-May-2014 Craig Stout <cstout@google.com> Merge "Improvements to browse search orb." into lmp-preview-dev
983ce5a01bb4dbbeb9c752f7ecf98653ea09174f 29-May-2014 Dake Gu <dake@google.com> Merge "GridLayoutManager: stop using adapter + smooth scroll support." into lmp-preview-dev
e7d7944fe8400baa17d4bb66069e3e9976615f31 29-May-2014 Dake Gu <dake@google.com> Merge "RecyclerView Cleanup" into lmp-preview-dev
aadb8928f5920c758c1a385bbc8b8b128a60657c 29-May-2014 Craig Stout <cstout@google.com> Improvements to browse search orb.

Now supports color animation.

b/15094070

Change-Id: Id66afa01711bcac4c950f19fda14d9593ff6b539
earchOrbView.java
2ad1027496fefed641f91f3cde2f8c8b468bca0c 22-May-2014 Jérôme Poichet <jpoichet@google.com> DO NOT MERGE Retroactive feedback

Incorporating feedback from ag/470934

Change-Id: I5338c2a9819b9c1c741f4bd97cef9cfef118c0e1
(cherry picked from commit 17ff6d32785b726b67fd3ac18e273651f15f59c0)
earchBar.java
6e0cf9c34636f450f1ada4bf3f53a98c7a3fe9df 27-May-2014 Dake Gu <dake@google.com> GridLayoutManager: stop using adapter + smooth scroll support.

Stop using Adapter, use State. State and Recycler references
will be released after onLayoutChildren() and scrollHorizontallyBy()
finishes.

Switch to use SmoothScroller for scrolling to invisible child.

Change-Id: I8d0e1e93dd226328cc337ab26f113c7c52cfc7c5
ridLayoutManager.java
d4a794983364c7b1801638abc7f332abee12b6e6 28-May-2014 Yigit Boyar <yboyar@google.com> RecyclerView Cleanup

Removed deprecated methods from RecyclerView.

(cherry picked from commit 34106bc044343fdac6d16623166d17cda17c083e)

Change-Id: Ie9de0aae4519b870302424deaf2326cbf9e4b7fc
ridLayoutManager.java
2a2b18cd1bc49aa5f51d2a2ab7272328ee0235f3 28-May-2014 Craig Stout <cstout@google.com> Fix details overview multiline title.

b/15218751

Change-Id: I93b954a96d8856bb73a8ca659fc59946f73cc1ca
bstractDetailsDescriptionPresenter.java
9c0d20dbcdf7afc18f429ad54a2250f82bd85841 24-May-2014 Tim Kilbourn <tkilbourn@google.com> Override correct scrollBy methods in GridLayoutManager.

Change-Id: I394a9267efd720f2b0de0a68d46914d0aa1c26c3
ridLayoutManager.java
8a6b74972056bb2a58b0a7f14d58f098a9d012be 23-May-2014 Tim Kilbourn <tkilbourn@google.com> Merge "Update leanback lib assets." into lmp-preview-dev
f9e105a8516efe06d1bdb8df2d569261c3b11dc6 23-May-2014 Tim Kilbourn <tkilbourn@google.com> Update leanback lib assets.

Some names were updated by UX to prevent possible naming collisions.

Change-Id: I64594c5b4f682c0b916e0485270da129074752e1
peechOrbView.java
268de3d2ea3de1be0725a80bbc79dd7b8b18617e 23-May-2014 Craig Stout <cstout@google.com> Browse redlines improvements.

b/15094070

Change-Id: I842070f69c136eaae33e6c66ff02828c49be3175
owHeaderPresenter.java
4a2e567c6a387fbd6122930155ac22d3f4b05e35 23-May-2014 Craig Stout <cstout@google.com> Merge "DO NOT MERGE Details actions polish." into lmp-preview-dev
2e0c922430f8c285b4325da52d69c09451069c93 22-May-2014 Craig Stout <cstout@google.com> DO NOT MERGE Details actions polish.

Includes fixes for fading edges on HorizontalGridView.

Change-Id: I04086b0d4c6f5047a6255217109cc1d6a15c6330
(cherry picked from commit 1c077500dda9d2e1c67aa0b19de36ded877a58fe)
etailsOverviewRowPresenter.java
orizontalGridView.java
64cb72ad6f931743fcb36aa2249e90aaabfd6a4b 22-May-2014 Craig Stout <cstout@google.com> DO NOT MERGE Fix for item alignment.

Change-Id: I372f6c610ac686dbfeed7b30664d7466a1675cd2
(cherry picked from commit 83964c856041da6788869eda5bcb97fe77016f00)
temAlignment.java
a9b678302ddee2149e5605afd429c74ba5625c24 22-May-2014 Jerome Poichet <jpoichet@google.com> Redlines for in-app search

Adding search box, handling different states UI (voice, text, focused,
unfocused)

b/14993328 | In-App Search: Implement Redlines and Motion

Change-Id: Icdd897e0552e68583781199d634383b02356fade
earchBar.java
peechOrbView.java
b6bccbc28a8ecac1b039afdedb89ba9af6a9908d 22-May-2014 Jerome Poichet <jpoichet@google.com> Merge "Adding voice support in search bar"
ea779163321dca33eddde61749c34eed4833883e 22-May-2014 Craig Stout <cstout@google.com> Merge "More details polish."
7c004076d5289caa0af7b5fb04cf7a3374be56b1 22-May-2014 Craig Stout <cstout@google.com> More details polish.

Change-Id: Ic8faffa8265def25fee1a09634e5ecd07e4cb49d
bstractDetailsDescriptionPresenter.java
ctionPresenterSelector.java
etailsOverviewRowPresenter.java
ocusHighlightHelper.java
25aacd3f5896ec09053739cc731bdbab3a6f2b81 15-May-2014 Jerome Poichet <jpoichet@google.com> Adding voice support in search bar

- Use private IME option to catch when voice key is pressed in IME
- Use private IME option to allow "escape north"
- Add a speech orb/button in search to start recognition
- Animate speech orb when speaking
- Handle switching from voice to IME

Change-Id: I14774ca173a8da94b26f4942e267377a496b838c
earchBar.java
peechOrbView.java
0d9a8f694bd3fedbd758de124f23992b7b8d7ac7 22-May-2014 Jerome Poichet <jpoichet@google.com> Merge "Adding SearchFragment title and badge"
514bdd5473ae7f4da990d6035422d0784c6c344e 16-May-2014 Jerome Poichet <jpoichet@google.com> Adding SearchFragment title and badge

Add getter and setters to set the hint and the icon in the search bar.

Change-Id: I63bc323ef5ce886efe578a58ddca7eb0fc8717b5
earchBar.java
e43e9266c4b7e4902fefb5d2a0cacca90a3d2681 16-May-2014 Dake Gu <dake@google.com> Browse: fix the space between rows in not expanded state

when expanded goes to false, half the vertical space to make
it equal to the horizontal space between cards.

remove the hardcoded 16 pixels due to compensating paddingTop
of horizontal grid view. Instead, introduce a flag
"setItemAlignmentOffsetWithPadding" in ItemAlignment.
So row will align the top of horizontal grid view(R.id.row_content)
plus the top padding of horizontal grid view to a fixed position
vertically.

Fixed some bug of handling optical bounds in ItemAlignment.

Removed duplicated browse margin dimens.

Change-Id: Ic3dcad2935bc7e4b525e6f830603bdce46e73086
aseGridView.java
ridLayoutManager.java
temAlignment.java
istRowPresenter.java
65058322c6009c57c47b73268568a5e259139a2c 17-May-2014 Craig Stout <cstout@google.com> Merge "New details ux spec."
d2c235afaa4119599fd8bfc9bff65c5af9a8fdc1 16-May-2014 Craig Stout <cstout@google.com> New details ux spec.

DetailsOverviewPresenter supports setting a background color and specifying
the layout style, large or small.

Change-Id: Icd16dfd39360d20aae23adc8662fef8e55bca187
bstractDetailsDescriptionPresenter.java
etailsOverviewRowPresenter.java
4510b275c55d9a3dae13af38196d3bc6affd3dfc 16-May-2014 Dake Gu <dake@google.com> fix janky "hide title transition"

don't prune the rows during transition, so they can be slided
out instead of faded out at original position.

b/15017332

Change-Id: Icc6e8b7d7c0b1f10ae2372bcb1b644455f1063d2
aseGridView.java
ridLayoutManager.java
9a1be9a2f40d23a2d08a6ea6cd59735ae9abd0de 16-May-2014 Dake Gu <dake@google.com> Merge "GridLayoutManager: fix layout animation"
2a0b55c390f4b75b3ae752b8407bf3da9d18a01e 16-May-2014 Dake Gu <dake@google.com> GridLayoutManager: fix layout animation

Just animate between x/y changes in layout, shouldn't animate
scrolloffset change.

b/14594235

Change-Id: I68e5cc9c53eb2e26ad50f09ff7b4064d05f0c203
ridLayoutManager.java
2cd8c3f3ca891f8b27bbc10ffc044cace0185ac2 16-May-2014 Jerome Poichet <jpoichet@google.com> Let the receiver handle the back key.

Was using onKeyPreIme to detect the back press, but was returning true
as if it was handled by the search bar when really we want the receiver
to handle th back button and allow the IME to be dimissed.

b/14931552 - [Molly]Keyboard stops registering the key clicks, if user taps on the 'back' button once in 'Search Mode'
b/14930596 - [Molly]User needs to tap the 'back' button 3 times to exit search mode

Change-Id: Ia3296dd1c15a3f22619c1e8776d5b9b83a03299a
earchEditText.java
74c29896d6e2a520e00605cceeef64669bab02b3 15-May-2014 Dake Gu <dake@google.com> Quantum browse: remove reparent transition

Change-Id: I4900a583a5989770b3069d3c7984961804461a68
owPresenter.java
42e4e84c1266426e89f7cf6117aae99e3aec4d81 12-May-2014 Dake Gu <dake@google.com> BrowseFragment: headers transition back press support.

Added a default support for "headers transition on back pressed".
Also provided BrowseTransitionListener and startHeadersTransition() for
the rare case if app has its own onBackPressed() handling (e.g. PlayStore).

b/13628758

Change-Id: I8c70171d0353d6b212fec9e9b0e4739b9f0d2138
nItemSelectedListener.java
4cf79b1c4d38a190317961891f9fd052836710fd 14-May-2014 Craig Stout <cstout@google.com> New browse ux with solid color fastlane.

Change-Id: Ide2516e6570c0990dd976b3ac6b759826ec95979
owHeaderPresenter.java
earchOrbView.java
0018dd1964053d44696aee1c564dd0a70b53fc24 09-May-2014 Dake Gu <dake@google.com> fix NPE in Settings app

don't fire child select change when !mLayoutEnabled.

Change-Id: I5fa69e2218a540efa4224d53bc1b0d158567816d
ridLayoutManager.java
2f97594742886d045ca1ce409ebc6e6e780452f6 06-May-2014 Dake Gu <dake@google.com> browse transition

fix bug that ListRowPresenter does not fire row selected event.
adjusted pivotx of header.
add fast lane header sliding transition.
fade row header in-place while moving parent.
Merged transitions into concurrent to make the transition more "tight".

b/14164663

Change-Id: I360118c98950519ed7e9dc3bf67dbe0bfdd45995
aseGridView.java
ridLayoutManager.java
istRowPresenter.java
owContainerView.java
owPresenter.java
dc362d4642900b852df2dd63e98848b6621cbe92 08-May-2014 Dake Gu <dake@google.com> fix fast relayout bug

after pushing items down/up, we should update rows min/max before
appending more items.

b/14651901

Change-Id: I5ec05e30746020c5dece90e7c67220f80eb63aee
ridLayoutManager.java
01ce047bc251d73d24c3ddd60aa280cf9930570b 03-May-2014 Dake Gu <dake@google.com> Make vertical grid fragment item center horizontally

Change-Id: Ide67b518e18b32fe95a1523398a0e0af3c8c9e5f
aseGridView.java
57070ccd71477252474e3c4d35edddbc859c6179 05-May-2014 Craig Stout <cstout@google.com> Merge "Support for bidirectional view layout along primary dimension."
aaeddd3d703a597945778a749fbef2d85532802d 18-Apr-2014 Craig Stout <cstout@google.com> Support for bidirectional view layout along primary dimension.

Layout direction is determined by whether the view was appended or
prepended.

Change-Id: I63aef2f7c7fbb93db9975d210a6f212c0b72ffcd
ridLayoutManager.java
e34cae48707e70442aca13e1b4ab55757292828d 02-May-2014 Dake Gu <dake@google.com> VerticalGridFragment title transition

Change-Id: I4f2d17ffe112e5ea89e5392a519d90e236e1e48d
aseGridView.java
ridLayoutManager.java
c407e646f1f923c3ef3000a3130efb9eefb2d3c0 02-May-2014 Craig Stout <cstout@google.com> Merge "Support for wrap content on the secondary axis."
f272f7533fcb5aba341e9ab2f4ff0421d668a8ca 26-Apr-2014 Craig Stout <cstout@google.com> Support for wrap content on the secondary axis.

Change-Id: I96ca955025c2d5b1857bd29febbcf2d0ac7e825a
ridLayoutManager.java
orizontalGridView.java
istRowPresenter.java
erticalGridView.java
35be60e31fa8bf53b89d13fddc88963f7c7162f7 01-May-2014 Dake Gu <dake@google.com> am 04d87418: am a5f76574: fix doc 2nd try

* commit '04d8741852fe856e47f02d07e4d7bd79bf28b1be':
fix doc 2nd try
a5f765740ef4451374963e6eabd5f587b94ff50e 30-Apr-2014 Dake Gu <dake@google.com> fix doc 2nd try

Change-Id: I95d260726bb1e8d441d515435bc83cb478c20902
ocusHighlightHelper.java
a4560456facaa3dd341a7ab2f372f655d46f7ee6 14-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Add methods to set row heights in ListRowPresenter.

Allows a ListRowPresenter to set the row height on new rows created by
the Presenter. Optionally, an expanded row height can be set, and the
RowPresenter will animate the height changes on expanded state changes.

Change-Id: I59257c1cc9cb4dbcf3447877b14a11295b11e992
istRowPresenter.java
95189b4f74c86737cb7ee13f10d27d567825f1cb 30-Apr-2014 Dake Gu <dake@google.com> am 60523845: am c16a0e4e: fix doc

* commit '6052384514be44daa8d131487a710a5256a68dc6':
fix doc
c16a0e4e812e393f67b0d55a4df5667a967a8e57 30-Apr-2014 Dake Gu <dake@google.com> fix doc

Change-Id: Iec5f0ccbf8cc7392babcf01d70cb29f10c4e2a0e
ocusHighlightHelper.java
fe0cc53f3e75b22b3b855677df650e797132cf12 30-Apr-2014 Dake Gu <dake@google.com> resolved conflicts for merge of 48a48651 to master

Change-Id: I183b1ac777437394d033210a10cd3df561428589
101dde19d1d2150afb02d1bf1d78a1759265c928 30-Apr-2014 Dake Gu <dake@google.com> Merge "Support header changeBounds transtion between fastlane and row" into klp-modular-dev
5e35530da02e69baacb9d26f1dbb45970a5dbb9c 29-Apr-2014 Dake Gu <dake@google.com> am 41d19c3c: am 70c07190: Merge "GridLayoutManager: new method signature" into klp-modular-dev

* commit '41d19c3c2ec81d40ca4ebf35f0a5e71ca3158eb0':
GridLayoutManager: new method signature
2d8ec4a44f2ffcfb83247c5f0e12e45aec7e4174 29-Apr-2014 Dake Gu <dake@google.com> GridLayoutManager: new method signature

Change-Id: I6a1a698eb59c973bd48cbd986805da01773c38d2
ridLayoutManager.java
4df06cbe8f6dd087fc8f1068faa77923cb297365 24-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Activate cards that are off screen.

setActivated() only affects children of recycler view that are on screen,
so previously new views that are attached are not set to activated.

Bug: 14089372
Change-Id: Ife7b954b5793fcf5ff1858481285a7f09e387fe1
istRowPresenter.java
owPresenter.java
3c23ada8bc25a05bbaa8c479a9df72e8172c4349 18-Apr-2014 Dake Gu <dake@google.com> Support header changeBounds transtion between fastlane and row

Now both fastlane and text view above row share the
same RowHeaderPresenter by default, this allows
customized RowHeaderPresenter also being used in fast
lane. Transition handles the transition between
them.

No longer detach/attach fast lane, goes back to the
original hide/show mechanism, also split the transition
work from focusSearch() and performed after focus changed.

Added a Customized changeBounds transtion that support setting
staggered startDelay of fastlane text views.

Change-Id: I688074b850c088c2ff53039d235ba70f88c38da5
aseGridView.java
ocusHighlightHelper.java
ridLayoutManager.java
owContainerView.java
owHeaderPresenter.java
owPresenter.java
b6e24f60743bd2022dd496126f0ff683ff6b3713 18-Apr-2014 Andrew Wilson <anwilson@google.com> Fade in images that are loaded. Allow setting of image dimensions. Allow titles to wrap if no description.

Change-Id: I4287d9bfac10ef5457a9f3ee76c8de0b3375ba5b
mageCardView.java
02e411c2c69d20aab138f1a162a24ea650eff7a1 19-Apr-2014 Dake Gu <dake@google.com> fix header position not synchronized to rows position and fix NPE

for no hovercard case.

Change-Id: Ic21b322158e88f1a42cc99f89fefb92f1e90357c
istRowPresenter.java
26bfc3c42a1e0b0bd08bf2bb1142b371b60aa7d3 05-Apr-2014 Craig Stout <cstout@google.com> Fix adapter update during measure.

Change-Id: Ia42463cdc0f5054c4771a439c6f310dcfaee2ec1
aseGridView.java
ridLayoutManager.java
85886809580d605d44a1f45d8bb80742d6ca987e 17-Apr-2014 Dake Gu <dake@google.com> ShadowOverlayContainer: Fix bug of always stretch to rowHeight

The FrameLayout takes the maximum measured child height as its measured height.
Since overlay/shadow use match_parent, their measured height will be using
full rowHeight. So regardless what wrapped view set, the wrapper will always
take full rowHeight.

Fix is to only use measuredHeight of wrapped view.

Change-Id: I551007090ccdc2f3b4495efb4f0ebb64bd51d658
hadowOverlayContainer.java
79ea84679035f18acc581896ff028a4866361b04 17-Apr-2014 Dake Gu <dake@google.com> BrowseFragment: Fix transition/animation conflicts

Disable vertical scrolling in left/right transition.
Disable left/right transition when vertical scrolling is running.

Change-Id: Ia0a8c8c164f85d9227245673c68b2df2630947ad
aseGridView.java
9240e796bc63422c28f2707840bd99c48573279b 14-Apr-2014 Dake Gu <dake@google.com> more transition support and fading edge support

Use fading edge effect instead of switching clipToPadding, this also
fixes bug of shadow gets clipped by padding.

Let TransitionManager control the browse rows animation, disable
grid view animation during transition, grid view should
re-initialize the start position values when layout animation is
turned on after transition completes.

Made transition customizable from code, adding listeners.

Change-Id: I7904a3731f58af035e207cf61ad7ab174cee231a
ridLayoutManager.java
orizontalGridView.java
istRowPresenter.java
hadowOverlayContainer.java
e273cee299273882f7d6c7e1ce10091cebd4f93b 16-Apr-2014 Jerome Poichet <jpoichet@google.com> Merge "moving the request focus later in lifecyle" into klp-modular-dev
84211f4a1fc6911951d76da5ce2579413f252771 16-Apr-2014 Andrew Wilson <anwilson@google.com> Fix layout of DetailsOverview.

Change-Id: I09bae4bf7482302ed0e8ee77ad2c31e572dcf2fc
bstractDetailsDescriptionPresenter.java
c4b1a043ab39a881b2a05d50e93c35e6f6ebfffb 14-Apr-2014 Dake Gu <dake@google.com> ListRowPresenter: fix ClassCastException

Checked on wrong function so that didn't set wrapper
and later will cast row view to a wrapper widget.

Change-Id: I5d9bb6b0b34cdb7599f9bde7235c457047a5b184
istRowPresenter.java
1e18cea1c29e13f6b10167b9d5a4648be5da9653 14-Apr-2014 Dake Gu <dake@google.com> Merge "Revert "GridLayoutManager: fix bug if current focus is on top of grid view"" into klp-modular-dev
31aa83dc228c115ff48105dd36f25304dd744460 14-Apr-2014 Dake Gu <dake@google.com> Revert "GridLayoutManager: fix bug if current focus is on top of grid view"

This reverts commit bcb7bf9b051050fa44ae270b4ac0ecab5456fe33.

That change caused issue that press DOWN in last item of fast lane will focus
to right side by default focusfinder. We have to revert this issue. To focus
on widget overlaid on top of RowsFragment, user has to override focusSearch()
in a customized widget like BrowseFragment does.

Change-Id: I360df90a3b8d05bba8548c0e0a0bfd58d59988a6
ridLayoutManager.java
cb13a318e577e14461eb008071dddf762847de42 11-Apr-2014 Dake Gu <dake@google.com> RowPresenter refactoring and preparing for Transition support

use a seperate RowContainerView for holding header view instead of insert
directly into view created by RowPresenter. This is an API change that
need fix all subclass of RowPresenter.

renamed some view classes.

Prepare for transition support: add and remove header view in
onRowViewExpanded()

Change-Id: I67fa23db6d2c21fa577d68393aca0746f3012002
rowseRowHeaderView.java
rowseRowHoverCardView.java
rowseRowView.java
etailsOverviewRowPresenter.java
istRowHoverCardView.java
istRowPresenter.java
istRowView.java
owContainerView.java
owHeaderPresenter.java
owHeaderView.java
owPresenter.java
erticalGridPresenter.java
4e2fb08b51c8f14e1fcbc336d55076d975329329 09-Apr-2014 Tim Kilbourn <tkilbourn@google.com> CardView improvements.

Apply default style and some other state change fixes.

Change-Id: Ide067639b668c10ceaf68c6a550b7ff039998991
aseCardView.java
bcb7bf9b051050fa44ae270b4ac0ecab5456fe33 10-Apr-2014 Dake Gu <dake@google.com> GridLayoutManager: fix bug if current focus is on top of grid view

When focused search widget is on top of grid view and inside padding area,
FocusFinder gives gridview a negative score since its top edge
is above top edge of search widget. So nothing happens when
click DOWN from search widget.

BrowseFragment does not have the problem since it has a customized view
overrides focusSearch(), but for user who is using RowsFragment directly, we
should make the default focus search working.

Change-Id: I916d9666076cb977296617075dc0721857d9a04e
ridLayoutManager.java
267ee02d485e13699840b3f8a6f480e0bb4abf0b 09-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Remove deprecated constants in leanback.

All uses have been switched to FocusHighlight so it's safe to remove
these.

Change-Id: Icfe8b906656051421409d4abd2867eecadd18e24
istRowPresenter.java
0d734cb6671b314f84cb4911cd37631177d07fba 09-Apr-2014 Craig Stout <cstout@google.com> Add shadow support to VerticalGridPresenter.

Change-Id: I7c48d650aea011d3da9775e62c34e6617cc41585
erticalGridPresenter.java
f110e403308bae45a8016f462052d8c2dee870cf 09-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Fix sdk docs build.

Change-Id: I06cb6e7b8c972d643c1cec78c7b4c71555cc8254
aseCardView.java
hadowOverlayContainer.java
dfd01bbadc107b6b3b2081ddb0236128c425f380 05-Apr-2014 Dake Gu <dake@google.com> Refactored shadow helper

Added helper class ShadowOverlayContainer can be shared
by RowsFragment and McLauncher.

Change-Id: I8c65d2a2c2a949cc4b251aeeeddf4bfea6f67194
ocusHighlightHelper.java
istRowCardWrapper.java
istRowPresenter.java
pticalBoundsHelper.java
hadowHelper.java
hadowOverlayContainer.java
b55f0880c367c0b7e4132e7d954b60725e01e0b2 05-Apr-2014 Tim Kilbourn <tkilbourn@google.com> BaseCardView and ImageCardView for leanback library.

A BaseCardView defines regions that can be displayed based on view state
changes on the layout. Three regions are defined: main, info, and extra,
and info and extra regions may become visible when the layout becomes
either activated or selected. Info must appear before or at the same
time as extra.

ImageCardView is a widget based on BaseCardView, defining a simple card
widget with a main image, a title, and a content string. Optionally the
card may also contain a small image badge. The text and badge are
contained in the info region, and there is no extra section.

Change-Id: I0cc497a7eaf434da3633ff307ab10d730731bbed
aseCardView.java
ocusHighlightHelper.java
mageCardView.java
afcaf8343b5fd033ce2810552f17dda93ce38047 09-Apr-2014 Dake Gu <dake@google.com> Merge "fix row select/expand state for SearchFragment" into klp-modular-dev
62d5de70439cb859525e45310b5ac4dbbfe420f2 09-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Add deprecated constants back to ListRowPresenter.

They were used by another branch, breaking the build.

Change-Id: I142be80612be5472328ccec061d22f555a343776
istRowPresenter.java
739e3805bf2785e6773aede5e2e1643f537305f9 07-Apr-2014 Craig Stout <cstout@google.com> Add a VerticalGridFragment.

Change-Id: I35476263c52d1fef09036bbe9339c945de2f339c
ocusHighlight.java
ocusHighlightHelper.java
temBridgeAdapter.java
istRowPresenter.java
nItemSelectedListener.java
erticalGridPresenter.java
0075dfe4e812a633be39018e1d6a85e5c6e58de5 05-Apr-2014 Jerome Poichet <jpoichet@google.com> moving the request focus later in lifecyle

Change-Id: I79dc3b64d6e3850e4f6775bf64ed0b853726d4a4
earchBar.java
0946602a3f3815a5f7d46dfc571b3c60483f1ea4 05-Apr-2014 Dake Gu <dake@google.com> fix row select/expand state for SearchFragment

The SearchFragment does regional updates that causes
onBind() again without attach, in onBind() we incorrectly
reset the UI state.

Change-Id: I5382793dfb923314c3b30af711977bf49966a847
owPresenter.java
70c858a5ca5b7ed9862e2edfa43912faecf42f96 05-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Details actions callbacks.

Add a listener to the DetailsOverviewRowPresenter for action callbacks.

Change-Id: Id0e023845f6d30b75f9a30a75d4b4b590df206a3
ction.java
ctionPresenterSelector.java
etailsOverviewRowPresenter.java
nActionClickedListener.java
43040065f16c57e180957a2afc27ecc706977491 05-Apr-2014 Dake Gu <dake@google.com> GridLayoutManager: fix crash of adding then removing end item

incorrectly append items which is in staggeredgrid history
but deleted by adapter.

Change-Id: I5028ba3a04e97a0cdfcf00e140a5abd741f6eb10
ridLayoutManager.java
c6b7931134cc3f4cdde95ebfd90c5dc69f59ef12 04-Apr-2014 Dake Gu <dake@google.com> Merge "fix dark overlay bug" into klp-modular-dev
29246e5ca814f17dcf368eeacd1b44a329592ae0 04-Apr-2014 Dake Gu <dake@google.com> fix dark overlay bug

apply dim in onAttachedToWindow(), onBind() does not cover the
items in bound cache pool of recyclerView.

Change-Id: Iced5fc987e507771ef317a2c56284b817d3f03fd
istRowPresenter.java
e652714f2fcc876de6f168b28dd03bfc22e1cb96 28-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Layout and styling for leanback details fragments.

Presenters for actions
Details descriptions styles

Change-Id: Ieff6e96d1a0131c96c01cdb5b012b6616f84d5ca
ction.java
ctionPresenter.java
ctionPresenterSelector.java
etailsOverviewRowPresenter.java
892181367d658f347d00ea5e091aa31f086b2a20 04-Apr-2014 Dake Gu <dake@google.com> implement a default shadow on browse row card in a non-intrusive way.

Automatically create a wrapper layout that wraps the view created
by Presenter and adding shadows, color overlay.

Change-Id: I34f4c508c01d7d3c1710e455ec0edd600735d278
ocusHighlightHelper.java
temBridgeAdapter.java
istRowCardWrapper.java
istRowPresenter.java
pticalBoundsHelper.java
owPresenter.java
8fac6554640f547c0efd98e67ca2d659172468bb 01-Apr-2014 Dake Gu <dake@google.com> stylize leanback padding etc, fix bug of top clipping.

The main purpose of the CL is to allow developer customize padding of
browse fragment by introducing a "browsePaddingXXX" theme attributes
that applies to different widgets. Fixed bug of top padding clip.

Also make rowsWidth browseRowsMarginStart browseRowsMarginTop
to be customizable if user are use our fragment in non-full screen case.

Change-Id: I2894a8e505d1025ecc637f038b141712115e11cd
rowseRowHeaderView.java
rowseRowView.java
5fb3146be35c38a8fb794c2b8566e35e6c049401 03-Apr-2014 Dake Gu <dake@google.com> Merge "fix undesired horizontal scroll when focus from fastlane to row." into klp-modular-dev
9421aa6ca7de4174ddbe2e10fbb05cb31685ffcc 02-Apr-2014 Dake Gu <dake@google.com> fix undesired horizontal scroll when focus from fastlane to row.

We have code in addFocusables() to avoid focus to views
in padding area. But when we switch from fast lane to
row, addFocusables() is not called, instead hroziontalGridView.requestFocus()
is called, which will by default find the first item in horizontalgridview.
Overrides onRequestFocusInDescendant() so that we only returns items
not overlapping with padding area.

enforce "focus after descendant".

Renamed some internal methods to avoid possible conflicts
if recyclerview add methods later.

Change-Id: I24fd175d7fe48924793f2b12fc8ea146280dcb3b
aseGridView.java
ridLayoutManager.java
e560a9d4e4a73def79923a15ae22109746fa9cbd 03-Apr-2014 Dake Gu <dake@google.com> clean up optical insets

abs() gets wrong optical bounds value for negative diff values.

Change-Id: Iecf4870d115eb5b6f7b00877a8ab477111207719
ridLayoutManager.java
7016761eb6734c4070f6177600acfb52bf021b7c 03-Apr-2014 Craig Stout <cstout@google.com> Fix optical bounds issue.

Change-Id: I2b99264a23641fc6de7c36c5f7fb03f0e800b6c3
ridLayoutManager.java
a5debe12465cc730b394651bed2acf894c60b65b 02-Apr-2014 Craig Stout <cstout@google.com> Revert "fix undesired horizontal scroll when focus from fastlane to row."

This reverts commit 5b1f117209e8a38d6d6b004c3c0d0285acc9b27f.
aseGridView.java
ridLayoutManager.java
c9422fb7ac972aee1f05c5ec0f07c2ec24cc771b 02-Apr-2014 Jerome Poichet <jpoichet@google.com> Showing the right IME action

b/13752423 SearchFragment - SearchResultProvider.onQueryTextSubmit never called

Change-Id: I1bd0957f22d4572963920f04fe35ca766a81dc4d
earchBar.java
03399b772a6e7823d8c8ec1ca1275b06c36a2e9e 02-Apr-2014 Dake Gu <dake@google.com> Merge "fix undesired horizontal scroll when focus from fastlane to row." into klp-modular-dev
9b0aa361de01529a7d6e5a5956548fef51213e9d 02-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Revert page-based scrolling on by default in browse.

Go back to aligned focus for now while we evaluate both.

Change-Id: Ib6cac8f8d294c6761b5c55293e5495746d342efb
rowseRowView.java
5b1f117209e8a38d6d6b004c3c0d0285acc9b27f 02-Apr-2014 Dake Gu <dake@google.com> fix undesired horizontal scroll when focus from fastlane to row.

We have code in addFocusables() to avoid focus to views
in padding area. But when we switch from fast lane to
row, addFocusables() is not called, instead hroziontalGridView.requestFocus()
is called, which will by default find the first item in horizontalgridview.
Overrides onRequestFocus() so that we only returns items
not overlapping with padding area.

remove the descendant focusability code since gridmanager should be always
focusing after descendant.

Renamed some internal methods to avoid possible conflicts
if recyclerview add methods later.

Change-Id: Iefd24a7f2a09341daeebe94736cfd4a5c62cd530
aseGridView.java
ridLayoutManager.java
adc2a01f5701cbcc044754119b572abcf31c7c5f 26-Mar-2014 Dake Gu <dake@google.com> GridLayoutManager: support paged focus scrolling

- FOCUS_SCROLL_ALIGNED this is what we currently have:
keep focused aligned.
- FOCUS_SCROLL_PAGE scroll page by page
- FOCUS_SCROLL_ITEM scroll item by item

Changed default BrowseRowView horizontal scrolling to use
FOCUS_SCROLL_PAGE.

Change-Id: Idc4cc2e7d4833cf9b24c8c9505b03e945667af59
aseGridView.java
rowseRowView.java
ridLayoutManager.java
taggeredGrid.java
62d36d44e03a3dd0632b156615b04563c62e83c1 02-Apr-2014 Dake Gu <dake@google.com> fix NPE when unfocused item is detached from recyclerView in layoutChildren()

Avoids calling view.getParent().getChildViewHolder(view) for detached unfocused
view, the viewHolder is no longer needed by FocusHighlight.

b/13749349

Change-Id: I9fd9d8cd116cc537262f4bcf4401a6bed3404e48
ocusHighlight.java
ocusHighlightHelper.java
temBridgeAdapter.java
ce08db4f13dd7f7a82694b440462d7484cfb7c5b 01-Apr-2014 Dake Gu <dake@google.com> Merge "draw focused item at last" into klp-modular-dev
182f3350d5f3cef04d160c673b6969df28e9439c 01-Apr-2014 Dake Gu <dake@google.com> draw focused item at last

b/13734333

Change-Id: Ib907699aa84be726fdce9076e41ccfb091627767
aseGridView.java
ridLayoutManager.java
5a2782ae17df5331a594fe03d5d89251a8b9f6d4 29-Mar-2014 Dake Gu <dake@google.com> GridLayoutManager: support gravity in secondary direction

allow child view to have a different size in second axis
other than mItemLengthSecondary. Depending on the gravity,
align the child view on secondary direction.

Change-Id: If02dd8c069219bf28791770dc3643956645ed634
aseGridView.java
ridLayoutManager.java
6da6ae33f0909d65fee90602ce5c78d4e1e4856f 01-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Fix docs build.

Forgot to correct the @param after changing a method parameter.

Change-Id: Ia08bb3dc4d2446e6b0c94c7bec5fa6f411dab80d
bstractDetailsDescriptionPresenter.java
f3530d9b4b852ffd8d6200feff810d42aae85a43 01-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Pass the details overview row item to the presenter.

Since the concrete class is going to call getItem() anyway, might as
well save them a step and pass the item directly.

Bug: 13735170
Change-Id: I7c0beb9326e310527e1a9ffb5f5dcfb7fee66cb6
bstractDetailsDescriptionPresenter.java
c7d37856bb5971608f557066873a155df391934d 01-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Fix docs build.

Change-Id: Ibc9a39545ddc2864ca4f4ccf610b42806d5efe4d
etailsOverviewRowPresenter.java
2574f0cfd53bfd4befeea437b5722c17559d8064 31-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Merge "Actions and details overview row for leanback." into klp-modular-dev
24b4b33b534ce1edd8ee1c19daa74078a5dd2a89 31-Mar-2014 Craig Stout <cstout@google.com> Merge "Zoom on focus changes." into klp-modular-dev
a83005b70853ea52c5d98910762344de16b850a8 25-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Actions and details overview row for leanback.

A DetailsOverviewRow contains the row data for presenting the top
details overview in a DetailsFragment.

TODO: presenter and click handlers for actions

Change-Id: I3d1cd24e5dac59c65449d6c9729538845c7b59eb
bstractDetailsDescriptionPresenter.java
ction.java
ctionPresenter.java
rrayObjectAdapter.java
etailsOverviewRow.java
etailsOverviewRowPresenter.java
ocusHighlightHelper.java
3c2998d502e4e2586d0bfc52ff5d1f2725fa9e6d 28-Mar-2014 Jerome Poichet <jpoichet@google.com> Improvement to SearchFragment

new SearchFragment API
better handling of focus
slowly following red lines

Change-Id: Icb56af529f03c9535eba0d9859e71dc49eb99253
earchBar.java
earchEditText.java
b9e89a1544f8cf582f191184fb9b2a4f24e1fa5b 31-Mar-2014 Craig Stout <cstout@google.com> Zoom on focus changes.

Developer may specify one of several predefined zoom factors.

Bug: 13387176
Change-Id: I6ad53f691c95d824ca379a7a50604c65363be7e4
ocusHighlightHelper.java
istRowPresenter.java
db1e9bb04638eb6b0b16e849e433d1c3b6f4296c 27-Mar-2014 Dake Gu <dake@google.com> Fix bug that setClipToPadding() does not update the ViewGroup.

We didn't see this happen because we always cause a layoutChildren()
which does the invalidate().

workaround b/13675947

Change-Id: I6ab5e9106fa403250c1eae9f08204dc6a5e79b1f
istRowPresenter.java
c26ebee190513b93c6f30620dac3bfc9038cb621 21-Mar-2014 Dake Gu <dake@google.com> GridLayoutManager: subclass LayoutParams instead of using Tag

Also make it ready for future customized layout params.

Change-Id: Ic72f03d433c84ba0871117a189b4e2482a3bf69f
ridLayoutManager.java
ridLayoutManagerChildTag.java
temAlignment.java
f23dc9bfc548a35bc0bc326c6f3ddbdc91f9e875 27-Mar-2014 Justin Mattson <jmatt@google.com> Merge "Add APIs to allow observability of property changes" into klp-modular-dev
b3451baf39c3b17972e7826baee90be4b1cd2626 26-Mar-2014 Justin Mattson <jmatt@google.com> Add APIs to allow observability of property changes

Change-Id: I178955edb7d3de7c34f685b8f524b6a0bc71b421
ursorObjectAdapter.java
bjectAdapter.java
7aaa6c6ef8807cc4ea4c4642716d6e30056bc4eb 24-Mar-2014 Dake Gu <dake@google.com> more javadocs about RowPresenter events and animations

renamed "row_list" to "row_content", so it can make sense for non list
row alignment.

Change-Id: I4f0a0d3bdf30049ada1a9bc87ac90900b6be3721
rowseRowView.java
istRowPresenter.java
owPresenter.java
0f03021697a323f7db7b934667ed260accd7b2ca 25-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Merge "Remove deprecated setMargin function." into klp-modular-dev
e2679e4ccab0ce75f701629c22c179165df4f15e 24-Mar-2014 Jerome Poichet <jpoichet@google.com> Search 'affordance' in title of BrowseFragment

Change-Id: Ifc2729489fcff597c8864ae8ac43d611d92e4b7a
earchOrbView.java
f133a97300b8175c68dc75edbdceff8b86b97912 25-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Remove deprecated setMargin function.

Change-Id: Ic803be92e7bed36cb26f2d9ad4c31b8541ab6134
aseGridView.java
cfbb302b7a67d1633b1a68f659ed41aa71702507 25-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Add support for multiple vertical columns.

VerticalGridView now supports multiple columns, just like
HorizontalGridView.

Change-Id: Ibe33c7fe960f04e01c13e9d848f9060ad1c26782
aseGridView.java
rowseRowView.java
orizontalGridView.java
erticalGridView.java
462e3ba37ddd32afb7434ec0a217af335f49b9a6 25-Mar-2014 Dake Gu <dake@google.com> fix IllegalStateException for calling setHasStableIds multiple times

Change-Id: I1e3013c031eb8e8ba4b727e0dbf25703eab5aec9
temBridgeAdapter.java
869c06d6d5dea7cf23f30fb5a1727204a43ac4c3 24-Mar-2014 Andrew Wilson <anwilson@google.com> Merge "Don't close a null cursor." into klp-modular-dev
e14d72261ac77c75ee77bdeb4557b57f87feb242 24-Mar-2014 Dake Gu <dake@google.com> Merge "GridLayoutManager: Fix missing margin" into klp-modular-dev
2eaaad9c189f1ae42bf6c382a30ccab455030e54 24-Mar-2014 Andrew Wilson <anwilson@google.com> Don't close a null cursor.

Change-Id: I10b9ef5fb26f0d583e5cce7e6a4cbf9fd24466a8
ursorObjectAdapter.java
85c10faf654848a8aacd1e61760b3e24a1902a83 21-Mar-2014 Jerome Poichet <jpoichet@google.com> SearchFragment and SearchBar in support-leanback

Change-Id: Id958ad47462d9efd2b5b770c0391477190e0d66a
earchBar.java
a8a3b898da49324e83ea32c3f08776a481312166 21-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Rename some leanback lib classes.

RowHeaderFragment -> HeadersFragment
RowContainerFragment -> RowsFragment
BaseListView -> BaseGridView
ListView -> VerticalGridView

Change-Id: Id37cb80a95122247aa33c55e545ece9f526df073
aseGridView.java
aseListView.java
ridLayoutManager.java
orizontalGridView.java
temAlignment.java
istView.java
erticalGridView.java
indowAlignment.java
fa9a61fa061befbbbd49b01ec926a0fe8d61a9a5 21-Mar-2014 Dake Gu <dake@google.com> GridLayoutManager: Fix missing margin

when we layout focus item in first row then layout prev item
in second row, the second row does not have any item yet, we
forget to add margin in this case.

b/13571410

Change-Id: Ied16bc560f55043e063f9d6554e7c4c6749d377d
ridLayoutManager.java
cf94c5fa8ae8edb7e26a623133207415ceeed187 20-Mar-2014 Dake Gu <dake@google.com> add support of row select animation

Row select animation is controlled in RowContainerFragment that
is not recommended to override. Developer can override the default
dim effect either as a subclass of RowPresenter or subclass
of ListRowPresenter. We also provide helper classes:
ColorFilterDimmer and ColorOverlayDimmer that developers might use
for their own dim effect.

Change-Id: I1982aa193ccf04be557187a6338feefbd675710a
ridLayoutManagerChildTag.java
temBridgeAdapter.java
istRowPresenter.java
owHeaderPresenter.java
owPresenter.java
0f1fa0dfa946ddc8afb6af26a4dd1a4d01dca10f 19-Mar-2014 Dake Gu <dake@google.com> final some methods and classes, fix some compile warnings

add some comments

Change-Id: I3868cd11eb6345778ae9c813cb9ea974543bc4ba
rowseRowView.java
lassPresenterSelector.java
ursorObjectAdapter.java
istRowPresenter.java
bjectAdapter.java
resenterSelector.java
inglePresenterSelector.java
522035025d6d9a7b3f0001bbc6724e71e91cae0c 20-Mar-2014 Dake Gu <dake@google.com> Merge "GridLayoutManager: fix ArrayIndexOutOfBoundException in onAddFocusables()" into klp-modular-dev
c1f3bcf2f1deac4603cddfb9548380ba20a5f310 19-Mar-2014 Dake Gu <dake@google.com> GridLayoutManager: fix ArrayIndexOutOfBoundException in onAddFocusables()

Fix the bug when child focusable is false.
b/13547532

Change-Id: I7ec0fce47b04775c2f90853d952783a773b31c62
ridLayoutManager.java
01b7f19dfa3b2ec113f20defacf32d0a548f5beb 20-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Add leanback droiddoc targets.

This provides a quick way to generate docs for just the
android-support-v17-leanback library. In addition, a stubs/api target
makes it easy to track API changes over time.

Fixed up one instance of using a hidden API in a public method.

Change-Id: I191b4b8a8707ac10b15b556cfa56386aa9674aad
orizontalHoverCardSwitcher.java
cfccf53cd27eb7d8e2420d507b4b46cd1c299815 19-Mar-2014 Dake Gu <dake@google.com> Merge "Leanback: add hover card view, stylize hover card layout" into klp-modular-dev
f804d908c317b846899a480031c4dcab616074c4 19-Mar-2014 Dake Gu <dake@google.com> Leanback: add hover card view, stylize hover card layout

remove unused "Theme.Leanback.Light"

Change-Id: Iec871179ce81ea98d311b93528d7b5ffa3d9b416
rowseRowHoverCardView.java
7888eca68714c6a753199b901e4a855d85d64ccb 19-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Fix javadoc for leanback.

Change-Id: I5504062fd2bb967c0d7f0f8d621934ef97946136
inglePresenterSelector.java
13d1515a1edd63f26ad7f3c9c7471d0969900190 19-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Implement ClassPresenterSelector.

Also promote SinglePresenterSelector to a public class.

Change-Id: I1315dded9349503486897035bd89d43dd804286c
lassPresenterSelector.java
bjectAdapter.java
inglePresenterSelector.java
b56bf9a6ae8a8490ff440ed8c136a72ee6398157 18-Mar-2014 Dake Gu <dake@google.com> RecyclerView: minor change of onAddFocusables() signagure

Pass RecyclerView as parameter.
Uses ArrayList instead of List to match View.addFocusables().

Change-Id: Iac06f2e862894ee9c420cfab062289500baf9067
aseListView.java
ridLayoutManager.java
60d34fdccbe92a77e01b2cc63ffcab092a91009f 18-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Fix javadoc so it compiles.

Change-Id: I18b86cf9e731986c60ad1ef991f9df094f02ae6d
aseListView.java
resenter.java
8b068ddbbf22a246eab49ec25a2f7c3abfbdca51 16-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Add a .readme file to be copied into the sdk src.

This allows the project resources to be built by ant/eclipse.
Also moved default source code dir to src instead of java/src.

Change-Id: I9e5002fbbfb96b98be772c1ec6653322d5563b56
rrayObjectAdapter.java
aseListView.java
rowseRowHeaderView.java
rowseRowView.java
lassPresenterSelector.java
ursorObjectAdapter.java
ocusHighlight.java
ocusHighlightHelper.java
ridLayoutManager.java
ridLayoutManagerChildTag.java
eaderItem.java
orizontalGridView.java
orizontalHoverCardSwitcher.java
temAlignment.java
temBridgeAdapter.java
istRow.java
istRowPresenter.java
istView.java
bjectAdapter.java
nChildSelectedListener.java
nItemClickedListener.java
nItemSelectedListener.java
resenter.java
resenterSelector.java
resenterSwitcher.java
ow.java
owHeaderPresenter.java
owPresenter.java
taggeredGrid.java
taggeredGridDefault.java
indowAlignment.java