Commit Graph

86 Commits

Author SHA1 Message Date
Christopher Ferris
0e2da18081 Fix up the makefiles and some samples.
Add LOCAL_DEX_PREOPT := false to force the samples to build actual apks.

In addition, fix a couple of other small issues:

- TtsEngine didn't have the api level set properly.
- SimpleJNI used a non-ndk library and was using libc++.

Change-Id: I1fd7c187956eed4620049bb746f4d62babcd648a
2016-04-19 14:32:13 -07: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
Craig Stout
cada786860 Add backgrounds.
Change-Id: I1f48ab3f6b914132f0c2560657e419b3f3ace882
2015-02-10 13:39:09 -08:00
Dake Gu
0bdce30561 showcase of updating DetailsOverviewRow parts
and using SparseArrayObjectAdapter for adding/removing actions

Bug: 19111955
Bug: 18869799
Change-Id: I8321f8de116fafda6e96a700855f218bacfc426c
2015-01-22 15:48:16 -08:00
Dake Gu
d17b2e78e8 Add test case for multiple row horizontal grid view
Add test case for update dataset at last row with empty space.

b/18631342
b/18718926

Change-Id: I3c745a41b0486cf293fc6a5a595e50f0a14ee0d0
2014-12-11 14:59:12 -08:00
Dake Gu
2dbbfbbffa Merge "Add RowsFragment example" into lmp-mr1-dev 2014-12-09 23:19:34 +00:00
Dake Gu
72ae1d3818 Add RowsFragment example
Bug: 18622128
Change-Id: I12146a766fa383782f9917352c5959b6064835ee
2014-12-09 14:50:01 -08:00
Craig Stout
1b6ad39042 Add 'Remove all then re-add'.
Change-Id: I57f06fab207bcf47c1fd089bf720f539aa389e7e
2014-12-08 16:09:31 -08:00
Craig Stout
f48581698c Use non-deprecated HeaderItem constructor.
b/17455376

Change-Id: I9fff76367ffe1f96642a39962e51c935cf39d10b
2014-12-03 17:11:57 -08:00
Craig Stout
e3e0ff6262 Merge "Update sample to use playback control glue." into lmp-mr1-dev 2014-11-21 23:30:42 +00:00
Kris Giesing
445965e57d Update sample app to support right-to-left layouts
Bug: 18262639
Change-Id: I2c1136821f665db095d72cee74f4c404badf4461
2014-11-21 10:30:11 -08:00
Craig Stout
29dadb6d14 Update sample to use playback control glue.
b/18077079

Change-Id: I8dafbca6450e04223d8316f1ee1ae9c42ec7b8e5
2014-11-19 16:51:59 -08:00
Dake Gu
d51791b082 SupportLeanbackDemo: add test of delayed detail entrance transition
b/17628884

Change-Id: Ic13424ae553b58dd93f9932dc50de00b4f876b02
2014-11-18 23:07:45 +00:00
Craig Stout
f92a171d99 Merge "Use 2-param constructor for HeaderItem." into lmp-mr1-dev 2014-11-18 19:00:39 +00:00
Craig Stout
e32b8d0a7b Use 2-param constructor for HeaderItem.
Change-Id: I5b48e3f37e7941a1bba8518efcbdcd180f20b8f5
2014-11-18 10:40:30 -08:00
Craig Stout
4e79fdca33 Fix NPE if user finishes activity quickly.
b/17646987

Change-Id: I6c3aa94f8b557449af410b323a6bbdfaa389015e
2014-11-18 10:35:09 -08:00
Dake Gu
865df70367 SupportLeanbackDemo: add test case of Browse/Details enter return transition
b/17628884

Change-Id: Ia896d295dce1000313651426f077d88a1ae05ebd
2014-11-12 17:41:55 -08:00
Tim Kilbourn
2f6ded27f6 Add secondary text to cards.
Add some content to PhotoItems so that the ImageCardViews use two lines
of text.

Bug: 18008019
Change-Id: I9bd72f585f76f84df70644b43539210664fbaa0e
2014-10-29 17:19:04 -07:00
Dake Gu
f66eadb5d4 SupportLeanbackDemo: Add test case for updating overview row
fixes b/17918639: no back activity transition when overview row updated.
Also hook up the playback actvity.

Change-Id: I52fe3808a1dc614df7d1f33f36de47ce9144e974
2014-10-29 14:44:50 -07:00
Dake Gu
b43b47c6d3 SupportLeanbackDemo: Add test case of ArrayObjectAdapter.replace()
b/17893479

Change-Id: Iaf91ba1ebca1237fc0d2d5629e0c2e83e15d54a0
2014-10-28 15:25:40 -07:00