From 63dcb5b4bde0a6db5797d8f763b9a9e13663b76b Mon Sep 17 00:00:00 2001 From: Robert Hahn Date: Fri, 29 May 2015 17:03:44 -0700 Subject: Implemented Card-, DetailView-, GridView-, Music- & Video, Wizard-, Dialog examples The Launcher card needs to be animated. When expanding cards with an animation some animation artifacts might occur since the transition system moves the cards to be centered again. Thus, the two animations are competing with each other. Currently I'm waiting for a change on leanback's transition system or another way to animate cards. Another animation artifact occurs when collapsing the SideInfo-cards, which I hope to be resolved once we clarified how to do proper card animations in the framework. There are some minor issues with in the DetailView since some API methods are missing for customization such as setting the details- and ActionBars background color. Removed obsolete package. Finished music example. Finished video example. Bug 22362006 Added Dialog example. WIP Testing new ImageCardView XML styling. WIP Settings example. WIP Wizard example. Finished Dialog example. Gradle uses environment variable to reference support libraries. Change-Id: I8f911d2e5aeb1fb8764f45d20fda1dc0fc69773a --- .../app/src/main/res/layout/activity_main.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml (limited to 'samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml') diff --git a/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml b/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml new file mode 100644 index 000000000..b6cf93f7a --- /dev/null +++ b/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,10 @@ + + + -- cgit v1.2.3 From 8dd090f5147d73261011620a8c1e0eeb43accf3e Mon Sep 17 00:00:00 2001 From: Robert Hahn Date: Mon, 3 Aug 2015 12:36:31 -0700 Subject: 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 --- .../app/src/main/res/layout/activity_main.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml') diff --git a/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml b/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml index b6cf93f7a..9d2eda6c7 100644 --- a/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml +++ b/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml @@ -1,4 +1,19 @@ + Date: Wed, 5 Aug 2015 10:32:56 -0700 Subject: 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 --- .../SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml') diff --git a/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml b/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml index 9d2eda6c7..e3c6889e2 100644 --- a/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml +++ b/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml @@ -21,5 +21,6 @@ android:layout_width="match_parent" android:layout_height="match_parent" tools:deviceIds="tv" + android:background="@drawable/bg_living_room_wide" tools:ignore="MergeRootFrame"> -- cgit v1.2.3 From ab2a8a7dae6fae5bc97240c47a68d6a7b93221b1 Mon Sep 17 00:00:00 2001 From: Dake Gu Date: Thu, 1 Oct 2015 14:32:05 -0700 Subject: 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 --- .../SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml | 1 - 1 file changed, 1 deletion(-) (limited to 'samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml') diff --git a/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml b/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml index e3c6889e2..9d2eda6c7 100644 --- a/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml +++ b/samples/SupportLeanbackShowcase/app/src/main/res/layout/activity_main.xml @@ -21,6 +21,5 @@ android:layout_width="match_parent" android:layout_height="match_parent" tools:deviceIds="tv" - android:background="@drawable/bg_living_room_wide" tools:ignore="MergeRootFrame"> -- cgit v1.2.3