* changes:
Showcase app: added a video playing at the end of GuidedStepFragment workflow
Showcase app: Fixed video fragment not showing video. Updated Settings and deprecated APIs for the app to be installable on L.
workflow
Now, after the user clicks on 'Watch Now', the sample video from the
"Video Consumption Examples" fragment will start playing, and on
back-press, they will be forwarded back to the Showcase app home screen.
Change-Id: Ife2ffbed1ed00a52df0a9cff4ab41a5868adee3d
and deprecated APIs for the app to be installable on L.
Video player was not being prepared for asynchronous playing after the
media source was set. Used the same preparation module for both the
Music and Video players.
Also, updated Settings to include a switch widget. Depredatecd some of
the APIs to level 1 to be able to install app on L.
Change-Id: I3bd8b266be028e80d87367a2c3c8a8174e924b92
Workaround two problems:
Bug 28138876: gradle build resource id crash after the AAPT2 change
in support library.
Bug 28672886: N preview emulator is too slow, built with prebuilt
to install on 23 emulator.
Change-Id: I810ab659af030d49ee503f4b28ad4bf7a34c4097
With the latest support for custom actions from leanback support, showcase
app now demos Playlist and Favorite action buttons for each media item
row. Upon favoriting a song, the media row is highlighted with a
different color. Also, clicking on song details will start playing that
song.
Change-Id: I59111563bebea3b0bf28e12d74f71421dc971f88
Add section, divider in CardExampleFragment, changed
row title to be relavant to how card is customized.
Bug 28398979
Change-Id: I801090d9977bb4ed9f5fa147a7db113a9c084dbb
background for the wizard view
Created a payment workflow consisting of a set of fragments for
entering & adding new credit card information (checks in place
for validity of the card number as well as expiration date).
Also, changed the dropdown subaction's background colors to
be consistent with the rest of guided step fragment view.
Fixed the back key pressed to "not" exit the entire wizard on the last
fragment (it not goes back to the payment fragment section when back
button is pressed).
Change-Id: I39cf316f09b765cffbd0a7e012539c49dbe238ed
Wizard view
Guided Action layout have gone through changes that caused "Rent" action to fail
in the example wizard view. Added layout_width and layout_height to all
the containers, as well as a changing "addSharedElement" in
"TransitionsHelper" in leanback support library.
Background color was added & action selector (while loading a video) was
removed by defining new themes.
Change-Id: Ia296e02720513edaea1d4197aacb5b4f88776545
GuidedAction.Builder
GuidedActions were created without the activity argument in the old
version; updated the API calls to use their context within the fragment.
Change-Id: I4b3433f9e0cdfe5fa84a56a78413c219fbc4d939
The card styles are converted into themes, and in the
ImageCardViewPresenter, each ImageCardView is generated through the use
of the resource ID of each specific theme.
This is to conform to the latest widget API change which moved a set of
attributes to theme for customizing widgets.
Bug: 26249596
Change-Id: Id64aeebb96bee13c6cb68f8ab69cacdfb9a98531
The "Video consumption Examples" view in SupportLeanBackShowcase was failing on
the master build (fugu-userdebug N AAC30 2573265 devkeys),
since onCreate gets called in the reverse order of fragments' appearence in the
code when using a single transaction.
Fixed that by using separate transactions per fragment addition, and now the
example video view works on the master build as well as the LMP-MR1 build.
Bug: 26894030
Change-Id: Ic020cb87049af7e2095387ca1aab017f2b026630
Transition animation isn't right. Browse fragment hasn't implemented
the pre-layout for row children horizontal layout change.
Change-Id: Ib4f55651c3f568ad9224c474036663f35935c4e3
Move background of browse/details/music from layout to windowBackground.
Setting background on view will cause the whole RelativeLayout being
faded in while transition move content inside the RelativeLayout.
The RelativeLayout does not have a hardwarelayer, nor does it specify
hasOverlappingRendering=false. This falls to the slowest rendering
path.
Change-Id: I78bacc965e641d7f960aae5cf212c29f6b1f0f11
Support staggered slide in/out transition for VerticalGrid.
Move background from layout file to windowBackground in theme. Defining
background on view conflicts with transitions.
Change-Id: If823f492fd5bdd0b16c1d1e735f4214f925f3ae3
Updated for new API addAsRoot() for GuidedStepFragment.
Rmove the awkward setStep() call, we can find current GuidedStepFragment
using standard API.
Change-Id: I7ecb108a36ab5d0091c230dd5c5686e3a91f1857
Added support for the DetailView Activity
transition. The DetailView can now be started
from the launcher or the Cards example.
Added support for Browse entrance transition.
Minor code clean up such as renaming
GridExample fragment to GridExampleFragment
and removing unused methods.
Change-Id: Ib1c11af82be5b858960e243acd7f11ce8dbd06f7
In order to show how to use transitions, they
have been added to the MainFragment. Thus the
transitions are used when an example gets opened.
Change-Id: I9703c7832a2d2ef2a09ddb91e1676dfc1ac4f24a
Launcher fragment. Video- and Music examples now also use
an Activity. BackgroundHandler in MainFragment removed.
Removed unused Log-Tag field and added correct background.
Changed Grid Zoom factor.
Moved Grid- and Card example to their own packages and
they now are started using an Activity.
Launcher fragment uses correct primaryColor and its row
has been lowered.
Music and Video consumption example are using Activities
as well. Thus BackgroundManager in MainFragment is
unnecessair, which is why it got removed.
Change-Id: I928614314677706f19e648666697f0a710d88e0a
There are no plans for now to show a
browsing example which is why it can be
removed for now. There was no code written
so far for this example.
Change-Id: I0580021ddc0f385d616074c61cc1c449e75357ad
Extracted Strings, added JavaDoc,
refactored the call of the second Wizard
screen to be less error-prone code.
Change-Id: Ib8a8af7019818b29d71ee1bed1cac3e2b56e8c11
resources.
Rearranged classes into packages to
provide a better overview as well as
removing an unused mp3 file.
Change-Id: I9e3b63ceef919d6f0d57479260c93376578793cf
The Showcase app now makes use of the new
ImageCardView which is stylable through
XML and uses less Views.
Cleaned up DetailView.
Cleaned up styles and layouts.
Added Copyright notices.
Change-Id: Ib37485d5b57be6a0f4b5321ac61b41a0808eaf35