History log of /frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
290cc49f6210525560e9d6c92fcca3789d28dd7c 29-Apr-2017 Dake Gu <dake@google.com> leanback: save events before attached to host

e.g. on buffering start was fired before glue is attached to host.
We should save the state and fire the event when attach to host.
Also updated embedded video playing sample: showing trailer initially
and switch to main video after purchase.

Bug: 37792058
Test: savePlayerAdapterEventBeforeAttachToHost

Change-Id: Ic5cd841cce2117f2d54eb0815c860d257f3c7fc9
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
3bcad88cbf4488e747d84893c35f2351b8f84afe 21-Mar-2017 Dake Gu <dake@google.com> leanback: new transport controls

PlaybackTransportRowPresenter is the new UX.

PlaybackTransportControlGlue extends from PlaybackGlue.
PlaybackTransportControlGlue is backed by PlayerWrapper.
PlaybackWrapper wraps underlying media player,
concrete example: MediaPlayerWrapper.

PlaybackSeekDataProvider defines the data interface that app
provides to leanback.
PlaybackUI defines seeking interaction between
PlaybackTransportControlGlue, PlaybackGlueHost and the presenter.

more:
- added progress bar support for media loading.
- fixed vertical video proportion and support video size change.

Test: PlaybackTransportControlGlueTest
PlaybackTransportRowPresenterTest.
Updated SampleVideoFragment.

Bug: 33751556

Change-Id: I1d39c6f65d04121f8cb9c25fb7ce103e32355190
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
5bcc058bb1aed2e88b38009e83084554cf2cd86b 29-Dec-2016 Dake Gu <dake@google.com> DetailsFragment: fix regression of missing title View

When title view and VideoFragment both exist, title view becomes
display only. When there is no VideoFragment, user can focus
to title view and do search, that is backward compatible with
behavior in 25.0.0

Bug: 33839988
Test: SupportLeanbackDemos DetailsFragmentTest

Change-Id: I52156993914a427d52b658ea10cd815632ca4fe3
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
ef05d5494fac2cc80f95d2627e1ec31615de360d 07-Dec-2016 Dake Gu <dake@google.com> Fix PlaybackOverlayFragment sample not work.

Restore the old PlaybackControlGlue code that bypass onItemViewClicked
if action is proceeded. This isn't a problem for new PlaybackControlGlue
which doesn't expose onItemViewClicked event.

Also add missing call to onCreateSecondaryActions.

Restore sample code for PlaybackOverlayFragment.

Bug: 33415386
Test: PlaybackControlGlueTest

Change-Id: Ic3747aee2adca0f056f610fb35261ef005f65fe1
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
aa49439ba6276137f94fcdc1bf4f69b78833dad6 01-Nov-2016 susnata <susnata@google.com> Adding VideoFragment sample to SupportLeanbackDemo app.

Test: None
Change-Id: I1841fa357825bf7ab719a236b47e04aa21a72e6b
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
ad3b46937808b5bf0afde9b5500af0d1f7e13149 05-Oct-2016 Keyvan Amiri <keyvana@google.com> Added Settings example to the SupportLeanbackDemos app

Created a Settings tab that showcases the latest preferences such
as SeekBarPreference. It also uses the same brand coloring for the
preferences title, category, as the coloring of the preference widgets.
Also, updated Makefile and build.gradle to include pref libraries.

Change-Id: Iaaac647fe869544d72dbead0ca6fb61dd8e42ccf
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
b7087e036a48f5a3db28d02ff7f9b97fbbc46c4f 22-Sep-2016 Dake Gu <dake@google.com> SupportLeanbackDemos: Remove usage of deprecated methods

Minor style clean up.

Change-Id: I1857e46bbc093bc069a060b9d850b20fff13c1e1
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
e3ef610a75fd382df930699ca42b61f24ac128f8 23-Mar-2016 Chulwoo Lee <chulwoo@google.com> Add demo for OnboardingFragment

Change-Id: I538ea409fc1cb1c1e6a60fb744b53cbeb4fb9bc1
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
20767a171ab46addb5d50248d4267db14c0c8883 28-Jan-2016 susnata <susnata@google.com> Updating SupportLeanbackDemo to showcase GuidedStepFragment.

Included sample activities/fragments to showcase how to
use GuidedStepFragment in half screen mode.

Change-Id: I9eefe417ddf79b0dfe896a5cec25b7c7cd3a41e7
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
4fa476ce5e53629a1016ca0743aec659c09cea9c 02-Dec-2015 Dake Gu <dake@google.com> Fix Context.getDrawable() crash on earlier platforms

Change-Id: I821577795f17e48e6fe58208861be501e9ee4627
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
47e9b753d9167840037651f9deb5140987e5d226 30-Sep-2015 Dake Gu <dake@google.com> Generate test for PlaybackOverlaySupportFragment

Change-Id: Ia3064006f3fb3fc4fd5230ff3ab24a7c4ba2470f
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
71e7e67f320b23feac784b629db17b3bcce08722 30-Sep-2015 Dake Gu <dake@google.com> Generate support version of leanback fragment tests

Include all leanback support version of fragment except
PlaybackOverlayFragment missing a support version of PlaybackControlHelper.

Change-Id: Icb5c99e8677630e8541b22b009051dd3908d4f35
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
ab1d3dce4807789e76bb7c4c7b6693d5aa993b1b 05-Sep-2015 Dake Gu <dake@google.com> Generate example of GuidedStepSupportFragment

Bug: 21504593

Change-Id: Ifafc4a956060def75bc01d45eeb568d3077a977e
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
067d9b9e5a56d015931a2b23f0aa2262942bb20a 18-Aug-2015 Dake Gu <dake@google.com> Add example of vertical grid transition and GuidedStepFragment

Added example of vertical grid transition

Added example of launching GuidedStepFragment from BrowseFragment.

Also fixed couple bug in GuidedStepActivity:
1. All fragment class should be public
2. Remove argument from constructor. Pass Arguments instead.

Bug: 23319507

Change-Id: Ia7b8d6669445be62f8f2a325cc460021ca392ded
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
28526e97c29242797010c34c92a8eb8a00b51c28 25-Jun-2015 Dake Gu <dake@google.com> SupportLenabackDemo: Make StepFragment public

If for any reason e.g. BrowseActivty crash or rotate screen on phone,
system needs a public empty parameter constructor to restore
fragment stack.

Change-Id: I4c001b4b95a1958ff7f2cb42688582c8261a71e0
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
58d19582d57cc3c1dae4efc76c5a91f87e5fef63 29-Apr-2015 Dake Gu <dake@google.com> Add samples for new DetailsFragment

Two samples: Details opened from browse where the overview row is
the first row. Details used by Search where overview row is the
second row.

Added option in MainActivity to switch between using legacy
DetailsOverviewRowPresenter and FullWidthDetailsOverviewRowPresenter

Change-Id: I10220396b5cfc0538cd5e99e46829ddfca874359
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
a5e729eb7c417a872876ac6f2b904bc8d232aa06 19-Mar-2015 Craig Stout <cstout@google.com> Add BackgroundManager release.

Change-Id: I5a4af31a214f2db26a399db39cf73d578dcbc71c
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
6f0d24aab5d9668c489097d26d4c3643f575b0c8 17-Feb-2015 Kris Giesing <kgiesing@google.com> Add demos for GuidedStepFragment.

Make the main activity a guided step that allows the selection of
other activities. Add a dedicated activity to represent a
sequence of GuidedStepFragments.

b/18935698

Change-Id: I16142f4d7e87b3f2f02b812faa9bff82ecf5361c
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java
2223b08a0435d06a61fa0046098fc80ad4293c1c 21-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Initial leanback sample code.

SupportLeanbackDemos starts out with a fully functional app with a
BrowseFragment. Still need to add examples with cursors, hovercards,
and more.

Change-Id: I845d5b92c29a5585af7968b08e7daa11b2996f5a
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/MainActivity.java