Commit Graph

104 Commits

Author SHA1 Message Date
Dongwon Kang
9227a46749 SupportLeanbackDemo: Fix generatev4.py
Bug: 27495998
Change-Id: If6d2bcc6f43aec7386ee141196d8fb5c8a525b3c
2016-03-04 10:37:51 -08:00
Dongwon Kang
e00ad29874 Revert "SupportLeanbackDemos: Use Fragment#onPictureInPictureChanged()"
This reverts commit 9ca8c945ae.

Backgroud: this change breaks generatev4.py conversion process due to b/27495998

Bug: 27495998
2016-03-04 10:34:21 -08:00
Keyvan Amiri
304b67538e SupportLeanbackDemos: Fixed password crash when no payment is selected
am: be98b3af70

* commit 'be98b3af70d0fb280dd688040b04880a9e4d543f':
  SupportLeanbackDemos: Fixed password crash when no payment is selected
2016-02-10 21:57:59 +00:00
Keyvan Amiri
be98b3af70 SupportLeanbackDemos: Fixed password crash when no payment is selected
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
2016-02-10 13:46:30 -08:00
Dongwon Kang
faf2da3510 LeanbackDemo: Bring piped activity to full-screen when relaunched
Bug: 26696836
Change-Id: Ic0e682d79eaa76b8e53b9a7c58c667fe22d3ab42
2016-02-10 00:42:23 +00:00
Dongwon Kang
9ca8c945ae SupportLeanbackDemos: Use Fragment#onPictureInPictureChanged()
Instead of Activity#onPictureInPictureChanged()

Change-Id: Id31ac91c9e43569fe387f087ff2e9a6c1afac6ce
2016-02-05 16:31:25 +09:00
Wale Ogunwale
cd7ce74e67 Merge "Renamed Activity class multi-window APIs" 2016-02-01 15:04:50 +00:00
Wale Ogunwale
8b52f7e0c2 Renamed Activity class multi-window APIs
As requested by API council.

Bug: 26507736
Change-Id: I8911c0b969ae05b686bea1dc26feba12cd074e6a
2016-01-29 18:08:31 -08:00
Susnata Basak
cff66dc9a5 Merge "Updating SupportLeanbackDemo to showcase GuidedStepFragment." into mnc-ub-dev
am: c140afb120

* commit 'c140afb120c664de8757a7df7d0eb16a60d91a09':
  Updating SupportLeanbackDemo to showcase GuidedStepFragment.
2016-01-29 21:45:34 +00:00
susnata
15871fb0d4 Updating SupportLeanbackDemo to showcase GuidedStepFragment.
Included sample activities/fragments to showcase how to
use GuidedStepFragment in half screen mode.

Change-Id: I9eefe417ddf79b0dfe896a5cec25b7c7cd3a41e7
2016-01-29 13:29:00 -08:00
Dongwon Kang
25015d6bac LeanbackDemo: Support Picture-in-picture
Bug: 26696836
Change-Id: I9809470b1fdc7bfbb049da3d40ab209578c4b656
2016-01-27 11:15:59 -08:00
Dake Gu
b571663f91 Merge "Add example of DatePicker" into mnc-ub-dev 2016-01-21 22:34:26 +00:00
Dake Gu
5df19367bb Merge "SupportLeanbackDemo: demo of custom theme of ImageCardView" into mnc-ub-dev 2016-01-13 18:44:02 +00:00
Dake Gu
c77aa4f798 GuidedStepFragment: add test for icon
Bug 26473407

Change-Id: I2f59fe2d869c39c802a6451533a49f6682cdef8a
2016-01-11 16:00:33 -08:00
Dake Gu
7d3da1d678 Add example of DatePicker
Bug 25390757

Change-Id: Iec578a2a195a7f8c6873fd95ceb08a33f502894b
2016-01-11 13:26:34 -08:00
Dake Gu
cb09b7bf22 SupportLeanbackDemo: demo of custom theme of ImageCardView
Change-Id: I8ba65d9d6ffbc461460acff99ac1c3125eb87d00
2015-12-18 17:16:13 -08:00
Dake Gu
9fa96ad4f6 Tuning GuidedAction APIs
Change-Id: I6d7f354d32315270201d9ab5ccae1c3d5f7b7e0d
2015-12-16 14:50:09 -08:00
Dake Gu
9ad497c285 Fix Context.getDrawable() crash on earlier platforms
Change-Id: I821577795f17e48e6fe58208861be501e9ee4627
2015-12-02 13:08:43 -08:00
Dake Gu
d245e0fc5d SupportLeanbackDemos: first showcase of drop down selection
Showcase of sub actions (aka dropdown list) and the typical payment
steps: a dropdown list of available cards plus "add new card" step
which will add more options to the list.

Bug 24979518

Change-Id: I1c7b83381cda37081c7438700b6800a02b36fe71
2015-11-23 15:03:27 -08:00
Dake Gu
d775d3a528 SupportLeanbackDemos: guidedstep changes
1. no longer provide a view to host background view
2. add demo of checkbox
3. add demo of customize Ime options.

Change-Id: I76dbbbd7e341906ff4e7b8923b1ddc2c01026f44
2015-11-13 13:14:42 -08:00
Dake Gu
0c356e44b3 GuidedStepFragment: Example of two columns actions
Bug 24979563

Change-Id: Id28e9b374d464846043e96c6b24ee95eed1af1d7
2015-11-03 14:51:03 -08:00
Dake Gu
caaf7b076e Dont use R.id.content to host GuidedStepFragment
Added example of set action not focusable

Bug 25352427

Change-Id: Ie9aed8c52d7639c3a39938117be94a65cf2005eb
2015-10-29 11:57:43 -07:00
Dake Gu
37836fd9d7 GuidedStep example: Use standard action IDs and titles
Bug 25193684

Change-Id: Iced3aa78db1437d1823b60d2be1188993f557958
2015-10-28 13:43:44 -07:00
Dake Gu
d80cfde31d SupportLeanbackDemo: add example finishGuidedStepFragments()
and popBackStackToGuidedStepFragment()

Change-Id: I747673f886bebf5ccc81b8f686c801ede4b5ac0b
2015-10-27 17:03:51 -07:00
Dake Gu
58ccc4ace2 GuidedStep: More example of editing
Example of switching text when editing.
Example of error checking and next action.
Example of InputType.
Example of enable/disable action.

Change-Id: Iea5108cb3f3d487be0a8cd892568c3e053ee3d0d
2015-10-26 14:36:21 -07:00
Dake Gu
c8ad1e5263 Leanback Demo: demo of edit title
Bug 24673827

Change-Id: I1e4d9378cc862d748055387a71129692bd4cf53b
2015-10-05 14:21:47 -07:00
Dake Gu
2e3684e007 GuidedStepFragment Subclass need explcitly specify a container id for background
After fixed Bug 24570987

Change-Id: I1ec51f8ea39b21e4d547e923386dd357a538ff4a
2015-10-01 11:46:10 -07:00
Dake Gu
c7e4f19c33 Generate test for PlaybackOverlaySupportFragment
Change-Id: Ia3064006f3fb3fc4fd5230ff3ab24a7c4ba2470f
2015-09-30 13:41:45 -07:00
Dake Gu
48b4a134a4 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
2015-09-30 11:26:37 -07:00
Dake Gu
1585785c23 Generate example of GuidedStepSupportFragment
Bug: 21504593

Change-Id: Ifafc4a956060def75bc01d45eeb568d3077a977e
2015-09-21 12:25:58 -07:00
Dake Gu
7b42f57cda 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
2015-09-14 16:09:33 -07:00
Dake Gu
a09fe02d59 Revert changes of adding guidedstep fragment in Browse
Bug 23324164

Change-Id: I7a5fe395429e2b96f54953975f0722657d577330
2015-08-18 16:03:55 -07:00
Kris Giesing
ec63848268 Merge "Add editable actions to Guided Step test activity." into mnc-ub-dev 2015-08-10 19:59:40 +00:00
Kris Giesing
6a07105bcd Add editable actions to Guided Step test activity.
b/21403345

Change-Id: I29ffee64c54f44d80cbfcd62bd3a1b78f22ae117
2015-08-05 19:46:21 -07:00
Dake Gu
94296eca10 BrowseErrorFragment: fix NPE of not attached BackgroundManager
BrowseErrorFragment also shows Background for selected item.
Need attach BackgroundManager to window.

b/22796403

Change-Id: I80bbaf48c85a318fdd0e07d4efd3d1b72876c03d
2015-07-28 13:50:54 -07:00
Dake Gu
b0d646c833 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
2015-06-24 15:07:03 -07:00
Dake Gu
1063d9b435 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
2015-05-05 11:18:41 -07:00
Kris Giesing
0d7136a72e Modify Guided Step example showing checkmark groups
Change example to show changing a checked item in a group while
staying on the same screen, to illustrate checkmark animations.

b/20545155

Change-Id: If7e64e57235e24fe3c6a3bf5b96c84fa7bd96da2
2015-04-27 15:47:52 -07:00
Deepanshu Gupta
cc8bf5bfaa Add resources to recyclerview dependency.
Change-Id: Ifa9ea3759702a59c09ee4d1e7523d4e954773882
2015-04-17 18:25:24 +00:00
Craig Stout
dcaafe81c8 Add BackgroundManager release.
Change-Id: I5a4af31a214f2db26a399db39cf73d578dcbc71c
2015-03-25 09:38:21 -07:00
Kris Giesing
818a7473fd Merge "Add demos for GuidedStepFragment." into lmp-mr1-ub-dev 2015-03-19 16:41:24 +00:00
Kris Giesing
bfcde222e9 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
2015-03-17 16:36:48 -07:00
Craig Stout
623cfb01dd Merge "Add branding to DetailsFragment and TitleHelper with RowsFragment." into lmp-mr1-ub-dev 2015-03-17 19:47:08 +00:00
Craig Stout
3da78ae74d Add branding to DetailsFragment and TitleHelper with RowsFragment.
b/16029942

Change-Id: I4179245c110ce74ebd5e50d55432e8ed3332d52b
2015-03-10 10:22:28 -07:00
Craig Stout
038b75ead3 Fix missing api on kitkat.
Change-Id: I047b1d1198c262e1836bb43551a65c6eab8bc5b4
2015-03-09 12:49:44 -07:00
Craig Stout
aaa3fa06b1 Default to using wrap content for row height.
Change-Id: I902b292726bdf8fa1d2134b00fde1385cbccc4ae
(cherry picked from commit 24ad89cd2b)
2015-03-03 00:04:15 +00:00
Craig Stout
5f6a8c4cbc Merge "Updated to clarify division of functionality." into lmp-mr1-ub-dev 2015-02-27 16:25:23 +00:00
Dake Gu
69cabd12e6 ItemClickedListener -> ItemViewClickedListener
Bug 19514090

Change-Id: Icf14e483b95d1bf5d57af9f27d977b0fdb686e67
2015-02-25 15:39:17 -08:00
Craig Stout
8f295cdef4 Updated to clarify division of functionality.
PlaybackControlHelper can be used in BrowseFragment.

Change-Id: Iac37e0a4f51ed1fab5edcff20d4a7037d4cc9ef9
2015-02-19 11:10:23 -08:00
Craig Stout
006d835209 Merge "Add backgrounds." into lmp-mr1-ub-dev 2015-02-17 22:42:00 +00:00