Top level - an activity with a list of all samples. The list is driven
by metadata collected from the manifest.
Second level - specific demos.
This allows:
* Clear labeling at the top-level of what we're demoing
* Much more flexible and scalable way to show multiple demos (instead
of one ViewPager)
* Consistent structure across all our support demo projects
Change-Id: I64a3b7788b14f0ac663be6616a2ec841ca53944e
This allows Support7Demos activity to show CardView support for ColorStateList.
This sample activity already contains R.color.card_selector and now it sets it
fully.
Bug: 26791833
Change-Id: I481d510501596f0d3a59cb194a7056a20ca9b72c
The second Guided Step fragment crashed when a password was entered but
no credit card info was selected, because it was trying to extract "Visa"
or "Master" substrings from an empty string. Put a check for string
sizes before this extraction is performed.
Change-Id: I9b93a302f5f855b1853885ff4e5fc9a04c200766
am: 64cae78d53
* commit '64cae78d53a7c0d4dc0a80bfddc03ecdee2667f7':
SupportLeanbackShowcase: Added new credit card workflow and theme background for the wizard view
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