diff --git a/docs/html/samples/images/ActivitySceneTransitionBasic.png b/docs/html/samples/images/ActivitySceneTransitionBasic.png new file mode 100644 index 0000000000000..ea58641ef62bf Binary files /dev/null and b/docs/html/samples/images/ActivitySceneTransitionBasic.png differ diff --git a/docs/html/samples/images/ActivitySceneTransitionBasic@2x.png b/docs/html/samples/images/ActivitySceneTransitionBasic@2x.png new file mode 100644 index 0000000000000..cd28adeba18f3 Binary files /dev/null and b/docs/html/samples/images/ActivitySceneTransitionBasic@2x.png differ diff --git a/docs/html/samples/images/BasicManagedProfile.png b/docs/html/samples/images/BasicManagedProfile.png new file mode 100644 index 0000000000000..7354842dd5837 Binary files /dev/null and b/docs/html/samples/images/BasicManagedProfile.png differ diff --git a/docs/html/samples/images/BasicManagedProfile@2x.png b/docs/html/samples/images/BasicManagedProfile@2x.png new file mode 100644 index 0000000000000..c232809d5dab7 Binary files /dev/null and b/docs/html/samples/images/BasicManagedProfile@2x.png differ diff --git a/docs/html/samples/images/JobSchedulerSample.png b/docs/html/samples/images/JobSchedulerSample.png new file mode 100644 index 0000000000000..ee57bdb27a6f7 Binary files /dev/null and b/docs/html/samples/images/JobSchedulerSample.png differ diff --git a/docs/html/samples/images/JobSchedulerSample@2x.png b/docs/html/samples/images/JobSchedulerSample@2x.png new file mode 100644 index 0000000000000..3d543db04b5fd Binary files /dev/null and b/docs/html/samples/images/JobSchedulerSample@2x.png differ diff --git a/docs/html/samples/index.jd b/docs/html/samples/index.jd index ab15e32c1936e..a44a22b574430 100644 --- a/docs/html/samples/index.jd +++ b/docs/html/samples/index.jd @@ -1,5 +1,5 @@ page.title=Samples -page.tags=samples,examples,code +page.tags="examples","code" @jd:body diff --git a/docs/html/samples/new/index.jd b/docs/html/samples/new/index.jd new file mode 100644 index 0000000000000..ca4477567511b --- /dev/null +++ b/docs/html/samples/new/index.jd @@ -0,0 +1,237 @@ +page.title=What's New + +@jd:body + +

The following code samples were recently published for the L Developer Preview. You can +download them in the Android SDK Manager under the SDK Samples component +for the L Developer Preview.

+ +

+ Note: At this time, the downloadable projects are designed + for use with Gradle and Android Studio. +

+ + +

BasicManagedProfile

+
+ +

+ Figure 1. The BasicManagedProfile sample app. +

+
+ +

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

+ + +

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

+ +

Get it on GitHub

+ +

Camera2Basic

+ + + +

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

+ + +

Camera2Video

+ + +

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

+ +

Get it on GitHub

+ +

ActivitySceneTransitionBasic

+
+ +

+ Figure 2. The ActivitySceneTransitionBasic sample app. +

+
+ +

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

+ +

ElevationBasic

+ + +

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

+ + + +

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

+ + +

ClippingBasic

+ + +

+This sample demonstrates clipping on a {@link android.view.View}. +

+ +

Get it on GitHub

+ +
+ +

+ Figure 3. The JobSchedulerSample sample app. +

+
+ +

GameControllerSample

+ + +

+This sample implements a multi-player game, demonstrating game controller input +handling. +

+ +

Get it on GitHub

+ + +

Visual-Game-Controller

+ + +

+This sample displays events received from a game controller shown on the screen. +

+ +

Get it on GitHub

+ +

AndroidTVLeanbackSample

+ + +

+This sample demonstrates use of the Android TV Leanback Support Library. +

+ +

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

+ + + + +

+This sample illustrates a common usage of the Android support library's +{@link android.support.v4.widget.DrawerLayout} widget. +

+ +

Get it on GitHub

+ diff --git a/docs/html/samples/samples_toc.cs b/docs/html/samples/samples_toc.cs index 2007f22e61374..976a7cadc0409 100644 --- a/docs/html/samples/samples_toc.cs +++ b/docs/html/samples/samples_toc.cs @@ -10,5 +10,10 @@ About the Samples +