b86a6c2c71514e0cb693597a955e224811b90f96 |
|
27-Sep-2017 |
Dake Gu <dake@google.com> |
leanback: prefer support lib fragment Historically leanback implemented framework fragment class first, and generates support lib fragment code from framework fragment code. Now we are going to give priority to support lib fragment. Rewrite python script to convert in the opposite direction. This implies when we later add new feature, the support fragment will be tried first before framework fragment. Still not decided if we want to deprecate the framework fragment classes. Test: leanback tests Bug: 66707813 Change-Id: Ie4e8ebedd5a7ce42d91361b34edcafa98e26f091
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/BrandedFragment.java
|
89097f67f988ebba714a95e10369665280db0c27 |
|
25-Mar-2017 |
Dake Gu <dake@google.com> |
DetailsFragment: support switchToVideo in onCreate Allows DetailsFragment to be put in intial video mode and skip entrance transition and enter transition. The DetailsFragment's state model is fairly complicated including entrance transition, enter transition and switchToVideo call. So reworked StateMachine and based DetailsFragment on StateMachine, remove the PF_ flags used before. When switchToVideo is called in DetailsFragment.onCreate, there is no video fragment yet, but we still fade out cover drawable and create a pending flag once the video fragment view is created will focus on to it. Added support in GridLayoutManager to allow slideOut() when there is no child, and layout the first pass out of window. switchToVideo is not allowed with entrance transition. once prepareEntranceTransition is called, switchToVideo will be ignored until entrance transition is finished. On the other hand, calling prepareEntranceTransition after switchToVideo will be ignored. switchToVideo will clear activity enter transitions. Once it is called in onCreate, we do not want the activity enter transition to run. Test: bunch of new tests in DetailsFragmentTest for all kinds of scenarios Bug: 36126851 Change-Id: Ic0279331b12b1e285507dffda3ad351245c01a1b
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/BrandedFragment.java
|
a373804d10f93a9488adc35cf6ce44dce09b3778 |
|
21-Apr-2016 |
Dake Gu <dake@google.com> |
leanback: allow customize title view branding Added theme attribute browseTitleViewLayout to customize layout for title view. The theme attribute is shared across all BrandedFragment subclasses including BrowseFragment, DetailsFragment, VerticalGridFragment and ErrorFragment. Custom layout can provide a customized widget which implements TitleViewAdapter. Expose hidden base BrandedFragment class to public in API, this fix issues of API generator does not handle public methods in hidden base class. Refactored ErrorFragment to use BrandedFragment. Bug 28297243 Change-Id: I355a0a12a1d994b6bb0a63745a0754557a5f4b20
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/BrandedFragment.java
|
7350fc450e5850b7a3dddff6d63fb87bd24886dd |
|
19-Apr-2016 |
susnata <susnata@google.com> |
Adding support for customization of TitleView. Following the Youtube model, we are adding the ability for page fragments to control the visibility of TitleView. Bug: 28269880 Change-Id: I5153f51ff155aeac3186156f79f2ddc0ab34cb42
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/BrandedFragment.java
|
b10ba3b01290ce801180a3d5dc992825af8cb3ab |
|
13-Apr-2016 |
susnata <susnata@google.com> |
Fixing the animation issue with TitleView. Change-Id: Iced7b29e6eb3e0b2f0e36277393a1034696848ed
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/BrandedFragment.java
|
6fd4441435b14669deced90a05097dd5fe459ace |
|
06-Apr-2016 |
susnata <susnata@google.com> |
Adding support for displaying TitleView inside page/rows fragments. Currently, BrowseFragment shows titleview when we scroll to the top row and hide it when we scroll away. But when we move into the content section, we don't show the titleview. This Cl will allow clients to show titleview inside their fragment. Change-Id: I81489e25165135d71acb376248ba2a000788413f
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/BrandedFragment.java
|
f01172a8028e20a2d86c71c1024fbc973e67afa4 |
|
10-Mar-2015 |
Craig Stout <cstout@google.com> |
Fix docs. Also sync BrandedSupportFragment. b/16029942 Change-Id: Ib74ade93895ef18fca599ea62a0d31555c4412f6
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/BrandedFragment.java
|
e7246ef136ed686d8caf339d4d1fd8e37b499c6a |
|
24-Feb-2015 |
Craig Stout <cstout@google.com> |
Broaden support for title/branding. Unhide TitleView and BrowseFrameLayout. Refactored branding fragment apis into base class BrandedFragment. Browse, details, vertical grid are now BrandedFragments. Create TitleHelper for devs managing TitleViews without BrandedFragment. Ensure moving toward 'end' from TitleView passes focus correctly. b/16029942 Change-Id: I5f48e404694997b359cbed579735544e79f6319b
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/BrandedFragment.java
|