From c9fc837fb3d866484a8ed3e61f2ba551f76af66b Mon Sep 17 00:00:00 2001 From: Renato Mangini Date: Wed, 12 Nov 2014 18:55:06 -0800 Subject: Add new samples to what's new page. Also reverted the order on the page to show most recent samples first. Bug: 18323953 Change-Id: I79b01fa71547f4a7d843f52bdd1853dd8fbe54a8 --- docs/html/samples/new/index.jd | 493 +++++++++++++++++++++++------------------ 1 file changed, 277 insertions(+), 216 deletions(-) (limited to 'docs/html/samples') diff --git a/docs/html/samples/new/index.jd b/docs/html/samples/new/index.jd index 330caa3..ba75072 100644 --- a/docs/html/samples/new/index.jd +++ b/docs/html/samples/new/index.jd @@ -12,116 +12,201 @@ for the L Developer Preview.

-

BasicManagedProfile

-
- -

- Figure 1. The BasicManagedProfile sample app. -

-
+ -

This sample demonstrates how to create a managed profile. You can also:

- +

Media Browser Service

-

Note: There can be only one managed profile on - a device at a time.

+

+This sample is a simple audio media app that exposes its media +library and provides metadata and playback controls through the new +MediaBrowserService and MediaSession APIs from API 21. +The sample is compatible with Android Auto and also provides a basic UI +when not connected to a car. +

-

Get it on GitHub

+

+ Note: This sample is compatible with Android Auto. +

-

Camera2Basic

+

Get it on GitHub

- -

This sample demonstrates the basic use of the Camera2 API. The sample code -demonstrates how you can display camera preview and take pictures.

+

Messaging Service

-

Get it on GitHub

+

+This sample shows a simple service that sends notifications using +NotificationCompat. In addition to sending a notification, it also extends +the notification with a CarExtender to make it compatible with Android Auto. +Each unread conversation from a user is sent as a distinct notification. +

+

+ Note: This sample is compatible with Android Auto. +

-

Camera2Video

- +

Get it on GitHub

-

This sample demonstrates how to record video using the Camera2 API.

-

Get it on GitHub

+

Speed Tracker (Wear)

-

ActivitySceneTransitionBasic

-
- -

- Figure 2. The ActivitySceneTransitionBasic sample app. -

-
+

+This sample uses the FusedLocation APIs of Google Play Services on Android Wear +devices that have a hardware GPS built in. In those cases, this sample provides +a simple screen that shows the current speed of the wearable device. User can +set a speed limit and if the speed approaches that limit, it changes the color +to yellow and if it exceeds the limit, it turns red. User can also enable +recording of coordinates and when it pairs back with the phone, this data +is synced with the phone component of the app and user can see a track +made of those coordinates on a map on the phone. +

-

This sample demonstrates how to the use {@link android.app.Activity} scene -transitions when transitioning from one activity to another. Uses a combination -of moveImage and changeBounds to nicely transition -from a grid of images to an activity with a large image and detail text.

+

Get it on GitHub

-

Get it on GitHub

-

ElevationBasic

- +

AppRestrictionSchema

-This sample demonstrates two alternative ways to move a view in the z-axis:

+This sample shows how to use app restrictions. This application has one boolean +restriction with a key "can_say_hello" that defines whether the only feature of this +app (press the button to show "Hello" message) is enabled or disabled. Use +AppRestrictionEnforcer sample to toggle the restriction. +

- +

Get it on GitHub

+ + +

AppRestrictionEnforcer

+ +

+This sample demonstrates how to set restrictions to other apps as a profile owner. +Use AppRestrictionSchema sample as a app with available restrictions. +

+ +

Get it on GitHub

+ + +

DocumentCentricRelinquishIdentity

+ +

+This sample shows how to relinquish identity to activities above it in the task stack. +

+ +

Get it on GitHub

+ + +

DocumentCentricApps

+ +

+This sample shows the basic usage of the new "Document Centric Apps" API. +It let's you create new documents in the system overview menu and persists its +state through reboots. If "Task per document" is checked a new task will be +created for every new document in the overview menu. +

+ +

Get it on GitHub

+ + +

HdrViewfinder

+ +

+This demo implements a real-time high-dynamic-range camera viewfinder, by alternating +the sensor's exposure time between two exposure values on even and odd frames, and then +compositing together the latest two frames whenever a new frame is captured. +

+ +

Get it on GitHub

+ + +

Interpolator

+ +

+This sample demonstrates the use of animation interpolators and path animations for +Material Design. It shows how an ObjectAnimator is used to animate two properties of a +view (scale X and Y) along a path. +

+ +

Get it on GitHub

+ + +

DrawableTinting

+ +

Sample that shows applying tinting and color filters to Drawables both programmatically +and as Drawable resources in XML.

+

Tinting is set on a nine-patch drawable through the "tint" and "tintMode" parameters. +A color state list is referenced as the tint color, which defines colors for different +states of a View (for example disabled/enabled, focused, pressed or selected).

+

Programmatically, tinting is applied to a Drawable through its "setColorFilter" method, +with a reference to a color and a PorterDuff blend mode. The color and blend mode can be +changed from the UI to see the effect of different options.

+ +

Get it on GitHub

+ + +

LNotifications

+ +

+This sample demonstrates how new features for notifications introduced in Android 5.0 +are used such as Heads-Up notifications, visibility, people, category and priority +metadata.

+

Get it on GitHub

+ + +

CardView

+ +

+This sample demonstrates how to use the CardView UI widget introduced in Android 5.0, using the support library for backward compatibility. +

+ +

Get it on GitHub

+ + +

RecyclerView

+ +

+Demonstration of using RecyclerView with a LayoutManager to create a vertical ListView. +

+ +

Get it on GitHub

+ + +

RevealEffectBasic

+ +

+A sample demonstrating how to perform a reveal effect for UI elements within the Material Design framework. +

+ +

Get it on GitHub

+ + +

FloatingActionButtonBasic

+ +

+This sample shows the two sizes of Floating Action Buttons and how to interact with +them. +

+ +

Get it on GitHub

-

Get it on GitHub

-

ElevationDrag

-

This sample demonstrates a drag and drop action on different shapes. -Elevation and z-translation are used to render the shadows. The views are -clipped using different outlines.

- -

Get it on GitHub

+

+**description** +

+--> -

ClippingBasic

+

-This sample demonstrates clipping on a {@link android.view.View}. +This sample illustrates a common usage of the Android support library's +{@link android.support.v4.widget.DrawerLayout} widget.

-

Get it on GitHub

+

Get it on GitHub

-
- -

- Figure 3. The JobSchedulerSample sample app. -

-
-

GameControllerSample

+

JobSchedulerSample

+ +

+This sample app allows the user to schedule jobs through the UI, and shows +visual cues when the jobs are executed. +

+ +

Get it on GitHub

+ + +

AndroidTVLeanbackSample

-This sample implements a multi-player game, demonstrating game controller input -handling. +This sample demonstrates use of the Android TV Leanback Support Library.

-

Get it on GitHub

+

Get it on GitHub

Visual-Game-Controller

@@ -180,7 +267,8 @@ This sample displays events received from a game controller shown on the screen.

Get it on GitHub

-

AndroidTVLeanbackSample

+ +

GameControllerSample

-This sample demonstrates use of the Android TV Leanback Support Library. +This sample implements a multi-player game, demonstrating game controller input +handling.

-

Get it on GitHub

- -

JobSchedulerSample

- -

-This sample app allows the user to schedule jobs through the UI, and shows -visual cues when the jobs are executed. -

+

Get it on GitHub

-

Get it on GitHub

- +

ClippingBasic

-This sample illustrates a common usage of the Android support library's -{@link android.support.v4.widget.DrawerLayout} widget. +This sample demonstrates clipping on a {@link android.view.View}.

-

Get it on GitHub

- -

FloatingActionButtonBasic

- -

-This sample shows the two sizes of Floating Action Buttons and how to interact with -them. -

- -

Get it on GitHub

- -

RevealEffectBasic

- -

-A sample demonstrating how to perform a reveal effect for UI elements within the Material Design framework. -

- -

Get it on GitHub

- -

RecyclerView

- -

-Demonstration of using RecyclerView with a LayoutManager to create a vertical ListView. -

- -

Get it on GitHub

- -

CardView

+

This sample demonstrates a drag and drop action on different shapes. +Elevation and z-translation are used to render the shadows. The views are +clipped using different outlines.

-

-This sample demonstrates how to use the CardView UI widget introduced in Android 5.0, using the support library for backward compatibility. -

+

Get it on GitHub

-

Get it on GitHub

-

LNotifications

+

ElevationBasic

+

-This sample demonstrates how new features for notifications introduced in Android 5.0 -are used such as Heads-Up notifications, visibility, people, category and priority -metadata.

-

Get it on GitHub

- -

DrawableTinting

- -

Sample that shows applying tinting and color filters to Drawables both programmatically -and as Drawable resources in XML.

-

Tinting is set on a nine-patch drawable through the "tint" and "tintMode" parameters. -A color state list is referenced as the tint color, which defines colors for different -states of a View (for example disabled/enabled, focused, pressed or selected).

-

Programmatically, tinting is applied to a Drawable through its "setColorFilter" method, -with a reference to a color and a PorterDuff blend mode. The color and blend mode can be -changed from the UI to see the effect of different options.

- -

Get it on GitHub

+This sample demonstrates two alternative ways to move a view in the z-axis:

-

Interpolator

+ -

-This sample demonstrates the use of animation interpolators and path animations for -Material Design. It shows how an ObjectAnimator is used to animate two properties of a -view (scale X and Y) along a path. -

+

Get it on GitHub

-

Get it on GitHub

-

HdrViewfinder

+

ActivitySceneTransitionBasic

+
+ +

+ Figure 2. The ActivitySceneTransitionBasic sample app. +

+
-

-This demo implements a real-time high-dynamic-range camera viewfinder, by alternating -the sensor's exposure time between two exposure values on even and odd frames, and then -compositing together the latest two frames whenever a new frame is captured. -

+

This sample demonstrates how to the use {@link android.app.Activity} scene +transitions when transitioning from one activity to another. Uses a combination +of moveImage and changeBounds to nicely transition +from a grid of images to an activity with a large image and detail text.

-

Get it on GitHub

+

Get it on GitHub

-

DocumentCentricApps

-

-This sample shows the basic usage of the new "Document Centric Apps" API. -It let's you create new documents in the system overview menu and persists its -state through reboots. If "Task per document" is checked a new task will be -created for every new document in the overview menu. -

+

Camera2Video

+ -

Get it on GitHub

+

This sample demonstrates how to record video using the Camera2 API.

-

DocumentCentricRelinquishIdentity

+

Get it on GitHub

-

-This sample shows how to relinquish identity to activities above it in the task stack. -

-

Get it on GitHub

+

Camera2Basic

-

AppRestrictionEnforcer

+ -

-This sample demonstrates how to set restrictions to other apps as a profile owner. -Use AppRestrictionSchema sample as a app with available restrictions. -

+

This sample demonstrates the basic use of the Camera2 API. The sample code +demonstrates how you can display camera preview and take pictures.

-

Get it on GitHub

+

Get it on GitHub

-

AppRestrictionSchema

-

-This sample shows how to use app restrictions. This application has one boolean -restriction with a key "can_say_hello" that defines whether the only feature of this -app (press the button to show "Hello" message) is enabled or disabled. Use -AppRestrictionEnforcer sample to toggle the restriction. -

+

BasicManagedProfile

+
+ +

+ Figure 1. The BasicManagedProfile sample app. +

+
-

Get it on GitHub

+

This sample demonstrates how to create a managed profile. You can also:

+ -

Speed Tracker (Wear)

+

Note: There can be only one managed profile on + a device at a time.

-

-This sample uses the FusedLocation APIs of Google Play Services on Android Wear -devices that have a hardware GPS built in. In those cases, this sample provides -a simple screen that shows the current speed of the wearable device. User can -set a speed limit and if the speed approaches that limit, it changes the color -to yellow and if it exceeds the limit, it turns red. User can also enable -recording of coordinates and when it pairs back with the phone, this data -is synced with the phone component of the app and user can see a track -made of those coordinates on a map on the phone. -

+

Get it on GitHub

-

Get it on GitHub

-- cgit v1.1