Commit Graph

2774 Commits

Author SHA1 Message Date
Dake Gu
6fe262dae9 Supportleanbackshowcase: Polishing 2 and transition performance fix
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
2015-10-01 15:10:07 -07:00
Dake Gu
ab2a8a7dae Supportleanbackshowcase: Polishing
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
2015-10-01 14:36:25 -07:00
Dake Gu
8ab0d48a61 Merge "Showcase: Update SDK to 23 and support lib to 23.0.1" into mnc-ub-dev 2015-10-01 20:59:29 +00:00
Dake Gu
5bf3eba9dd Showcase: Update SDK to 23 and support lib to 23.0.1
Updated for new API addAsRoot() for GuidedStepFragment.
Rmove the awkward setStep() call,  we can find current GuidedStepFragment
using standard API.

Change-Id: I7ecb108a36ab5d0091c230dd5c5686e3a91f1857
2015-10-01 12:59:41 -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
8894dc714a Merge "Generate test for PlaybackOverlaySupportFragment" into mnc-ub-dev 2015-10-01 18:16:10 +00:00
Dake Gu
fedab48a80 Merge "Generate support version of leanback fragment tests" into mnc-ub-dev 2015-10-01 17:53:47 +00: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
Yuichi Araki
d9b5ca8fb8 Add usage of app:actionLayout in NavigationView
Change-Id: Ia89c13233226bebba9a0d0bde57f183debd85ba4
2015-09-29 18:21:16 +09:00
Yigit Boyar
3d1224e652 RecyclerView in place animations
Bug: 22507896
Change-Id: I0344348011c412ea00b97eec97fa8d566bb09c7e
2015-09-23 13:12:34 -07:00
Dake Gu
1585785c23 Generate example of GuidedStepSupportFragment
Bug: 21504593

Change-Id: Ifafc4a956060def75bc01d45eeb568d3077a977e
2015-09-21 12:25:58 -07:00
Dake Gu
fc16978239 Merge "Add example of vertical grid transition and GuidedStepFragment" into mnc-ub-dev 2015-09-21 17:55:59 +00: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
Chris Banes
8402e53c26 Merge "Add snapping scroll example to SupportDesignDemos" into mnc-ub-dev 2015-09-10 00:25:10 +00:00
Mady Mellor
69bd278c0c Add proguard configuration to support design demos sample app
Proguard was stripping out the coordinator layout behavior and the
linear layout manager classes.

Change-Id: Ibe72d5952bee20cf386e7384e261f46eea1cb67d
2015-09-09 10:42:59 -07:00
Chris Banes
4e650fbf0b Add snapping scroll example to SupportDesignDemos
BUG: 23792717
Change-Id: Ida0ba53fdf14534daa5a2a61ba5c035a1b782e82
2015-09-04 11:19:45 +10:00
Chris Banes
063b68edf6 Add DrawableCompat demo to Support4Demos
Change-Id: Ie00198b1d4dbc0c71084961eee2387a68e39505f
2015-09-04 07:27:28 +10:00
Jae Seo
106e33404a MediaRouter: Remove uses of not-yet-public API
Change-Id: I05949c75081fc963fe4b025f6f4db13d0255eeef
2015-08-27 17:54:54 -07:00
Jae Seo
3fb1da70ef MediaRouter: Remove an unused member in SampleMediaRouteProvider
Change-Id: I9eb7d16a49017697e2586dc1988e4411566d65d4
2015-08-25 14:46:29 +09:00
Jae Seo
b26f52f2c0 MediaRouter: Add a sample for the custom route icon
Bug: 23116379
Change-Id: Ie744f40584e4f39cf17cd58d238f98059a8a88a3
2015-08-25 13:59:20 +09:00
Jaewan Kim
327fee84b5 Merge "MediaRouter: Prevent activity from restarting" into mnc-ub-dev 2015-08-25 01:40:35 +00:00
Robert Hahn
e6b72719a8 Added Transitions and minor code clean up
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
2015-08-24 10:51:57 -07:00
Jaewan Kim
5d04bdb493 MediaRouter: Prevent activity from restarting
This keeps the playlist for orientation changes.

Bug: 23399327
Change-Id: I89d436a0455190798180ceef3bcb2028eacbf23b
2015-08-24 20:03:45 +09:00
Trevor Johns
979a6c716c am 81556478: Sync sample prebuilts for mnc-dev
* commit '8155647801c9da4070bc0a044ec73afc126f4b88':
  Sync sample prebuilts for mnc-dev
2015-08-20 16:23:15 +00:00
Trevor Johns
55dcdfb298 am c8e94bf5: Sync mnc-dev sample prebuilts
* commit 'c8e94bf583adc38c36e968eb00f21a8b8ca70257':
  Sync mnc-dev sample prebuilts
2015-08-20 16:23:13 +00:00
Trevor Johns
7eca3d4cf5 am a56a6341: Update sample prebuilts to use latest deps
* commit 'a56a6341669e1402c23c9d4e1c24337525189c65':
  Update sample prebuilts to use latest deps
2015-08-20 16:23:11 +00:00
Trevor Johns
47176947a3 am 9a9c2ea5: Bump mnc-dev samples package to v3 (DO NOT MERGE)
* commit '9a9c2ea5f207e3f59f6ede1b91f46121e41200a5':
  Bump mnc-dev samples package to v3 (DO NOT MERGE)
2015-08-20 16:23:09 +00:00
Trevor Johns
e00d9e659c am d95a687e: Sync sample prebuilts for mnc-dev
* commit 'd95a687e5a9820f9859997dc733da9a18afb57c2':
  Sync sample prebuilts for mnc-dev
2015-08-20 16:10:16 +00:00
Trevor Johns
8155647801 Sync sample prebuilts for mnc-dev
Synced to //developers/samples/android commit 57690c2111.

Change-Id: Ie10e7bbcf4fd9dfb4db02b8cffa4e47d88076315
2015-08-19 17:38:27 -07:00
Jae Seo
7f59e62cf6 Merge "MediaRouter: Add route groups" into mnc-ub-dev 2015-08-19 06:06:46 +00: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
Jae Seo
cbfd7cd506 MediaRouter: Add route groups
Change-Id: Ideab1c0fccd01a68e3f6a5997b9c66aed9b1332e
2015-08-18 16:00:05 -07:00
Robert Hahn
a6b10a96b7 Merge "WIP: Added transitions to MainFragment." into mnc-ub-dev 2015-08-18 17:17:21 +00:00
Trevor Johns
c8e94bf583 Sync mnc-dev sample prebuilts
Syncing to //developers/samples/android commmit 2be5f5ca32.

Change-Id: Ia08c63655bd122c7fbb0cc3a50eec95d8edcb3f1
2015-08-17 09:37:47 -07:00
Trevor Johns
a56a634166 Update sample prebuilts to use latest deps
Pulling in dependency changes from //developers/build commit 5d58bc4802

Change-Id: Ie7a807995dc5ffbaa2c0da2cc51795553495196b
2015-08-14 16:18:55 -07:00
Trevor Johns
9a9c2ea5f2 Bump mnc-dev samples package to v3 (DO NOT MERGE)
Change-Id: I71f024ec2fd0dbbd2a5ad83cd1a33402410077e5
2015-08-13 21:11:36 -07:00
Trevor Johns
d95a687e5a Sync sample prebuilts for mnc-dev
Synced to //developers/samples/android commit 89d2da0f4b.

Change-Id: I904da8210517922531d1ac1ba1e747f1c7bf00b3
2015-08-13 21:10:42 -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
Robert Hahn
742e2682a9 WIP: Added transitions to MainFragment.
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
2015-08-06 15:37:56 -07:00
Robert Hahn
d811b8ef9a Merge "Polished Grid example and added a few missing details at Launcher fragment. Video- and Music examples now also use an Activity. BackgroundHandler in MainFragment removed." into mnc-ub-dev 2015-08-06 21:35:37 +00:00
Dake Gu
3dfa612939 am 6ad53c99: Merge "BrowseErrorFragment: fix NPE of not attached BackgroundManager" into mnc-dev
* commit '6ad53c992dc9043c024699d512e3784e18aef1e2':
  BrowseErrorFragment: fix NPE of not attached BackgroundManager
2015-08-06 21:05:31 +00:00
Dake Gu
6ad53c992d Merge "BrowseErrorFragment: fix NPE of not attached BackgroundManager" into mnc-dev 2015-08-06 20:43:55 +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
Robert Hahn
26b7df1102 Polished Grid example and added a few missing details at
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
2015-08-05 19:10:12 -07:00
Robert Hahn
aeedeb7d60 Cleaned up strings.xml
Removed unused strings.

Change-Id: I4752b86795a0b03b7de33bad3d736ba3ab2d8392
2015-08-05 10:24:20 -07:00
Robert Hahn
63e8181cee Removed Browsing example from Showcase app
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
2015-08-05 10:16:38 -07:00
Robert Hahn
80116aacde Polished Wizard example for Showcase app
Extracted Strings, added JavaDoc,
refactored the call of the second Wizard
screen to be less error-prone code.

Change-Id: Ib8a8af7019818b29d71ee1bed1cac3e2b56e8c11
2015-08-05 10:04:31 -07:00
Robert Hahn
9f8ccdc5af Rearranged classes and removed unused
resources.

Rearranged classes into packages to
provide a better overview as well as
removing an unused mp3 file.

Change-Id: I9e3b63ceef919d6f0d57479260c93376578793cf
2015-08-04 14:58:39 -07:00
Robert Hahn
8dd090f514 Cleanup and usage of new ImageCardView
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
2015-08-04 14:04:14 -07:00