Loading docs/html/samples/new/index.jd +113 −0 Original line number Original line Diff line number Diff line Loading @@ -235,3 +235,116 @@ This sample illustrates a common usage of the Android support library's **description** **description** </p> </p> --> --> <h3 id="FloatingActionButtonBasic">FloatingActionButtonBasic</h3> <p> This sample shows the two sizes of Floating Action Buttons and how to interact with them. </p> <p><a href="http://github.com/googlesamples/android-FloatingActionButtonBasic">Get it on GitHub</a></p> <h3 id="RevealEffectBasic">RevealEffectBasic</h3> <p> A sample demonstrating how to perform a reveal effect for UI elements within the Material Design framework. </p> <p><a href="http://github.com/googlesamples/android-RevealEffectBasic">Get it on GitHub</a></p> <h3 id="RecyclerView">RecyclerView</h3> <p> Demonstration of using RecyclerView with a LayoutManager to create a vertical ListView. </p> <p><a href="http://github.com/googlesamples/android-RecyclerView">Get it on GitHub</a></p> <h3 id="CardView">CardView</h3> <p> This sample demonstrates how to use the CardView UI widget introduced in Android 5.0, using the support library for backward compatibility. </p> <p><a href="http://github.com/googlesamples/android-CardView">Get it on GitHub</a></p> <h3 id="LNotifications">LNotifications</h3> <p> 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. </p> <p><a href="http://github.com/googlesamples/android-LNotifications">Get it on GitHub</a></p> <h3 id="DrawableTinting">DrawableTinting</h3> <p>Sample that shows applying tinting and color filters to Drawables both programmatically and as Drawable resources in XML.</p> <p>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).</p> <p>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.</p> <p><a href="http://github.com/googlesamples/android-DrawableTinting">Get it on GitHub</a></p> <h3 id="Interpolator">Interpolator</h3> <p> 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. </p> <p><a href="http://github.com/googlesamples/android-Interpolator">Get it on GitHub</a></p> <h3 id="HdrViewfinder">HdrViewfinder</h3> <p> 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. </p> <p><a href="http://github.com/googlesamples/android-HdrViewfinder">Get it on GitHub</a></p> <h3 id="DocumentCentricApps">DocumentCentricApps</h3> <p> 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. </p> <p><a href="http://github.com/googlesamples/android-DocumentCentricApps">Get it on GitHub</a></p> <h3 id="DocumentCentricRelinquishIdentity">DocumentCentricRelinquishIdentity</h3> <p> This sample shows how to relinquish identity to activities above it in the task stack. </p> <p><a href="http://github.com/googlesamples/android-DocumentCentricRelinquishIdentity">Get it on GitHub</a></p> <h3 id="AppRestrictionEnforcer">AppRestrictionEnforcer</h3> <p> This sample demonstrates how to set restrictions to other apps as a profile owner. Use AppRestrictionSchema sample as a app with available restrictions. </p> <p><a href="http://github.com/googlesamples/android-AppRestrictionEnforcer">Get it on GitHub</a></p> <h3 id="AppRestrictionSchema">AppRestrictionSchema</h3> <p> 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. </p> <p><a href="http://github.com/googlesamples/android-AppRestrictionSchema">Get it on GitHub</a></p> Loading
docs/html/samples/new/index.jd +113 −0 Original line number Original line Diff line number Diff line Loading @@ -235,3 +235,116 @@ This sample illustrates a common usage of the Android support library's **description** **description** </p> </p> --> --> <h3 id="FloatingActionButtonBasic">FloatingActionButtonBasic</h3> <p> This sample shows the two sizes of Floating Action Buttons and how to interact with them. </p> <p><a href="http://github.com/googlesamples/android-FloatingActionButtonBasic">Get it on GitHub</a></p> <h3 id="RevealEffectBasic">RevealEffectBasic</h3> <p> A sample demonstrating how to perform a reveal effect for UI elements within the Material Design framework. </p> <p><a href="http://github.com/googlesamples/android-RevealEffectBasic">Get it on GitHub</a></p> <h3 id="RecyclerView">RecyclerView</h3> <p> Demonstration of using RecyclerView with a LayoutManager to create a vertical ListView. </p> <p><a href="http://github.com/googlesamples/android-RecyclerView">Get it on GitHub</a></p> <h3 id="CardView">CardView</h3> <p> This sample demonstrates how to use the CardView UI widget introduced in Android 5.0, using the support library for backward compatibility. </p> <p><a href="http://github.com/googlesamples/android-CardView">Get it on GitHub</a></p> <h3 id="LNotifications">LNotifications</h3> <p> 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. </p> <p><a href="http://github.com/googlesamples/android-LNotifications">Get it on GitHub</a></p> <h3 id="DrawableTinting">DrawableTinting</h3> <p>Sample that shows applying tinting and color filters to Drawables both programmatically and as Drawable resources in XML.</p> <p>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).</p> <p>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.</p> <p><a href="http://github.com/googlesamples/android-DrawableTinting">Get it on GitHub</a></p> <h3 id="Interpolator">Interpolator</h3> <p> 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. </p> <p><a href="http://github.com/googlesamples/android-Interpolator">Get it on GitHub</a></p> <h3 id="HdrViewfinder">HdrViewfinder</h3> <p> 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. </p> <p><a href="http://github.com/googlesamples/android-HdrViewfinder">Get it on GitHub</a></p> <h3 id="DocumentCentricApps">DocumentCentricApps</h3> <p> 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. </p> <p><a href="http://github.com/googlesamples/android-DocumentCentricApps">Get it on GitHub</a></p> <h3 id="DocumentCentricRelinquishIdentity">DocumentCentricRelinquishIdentity</h3> <p> This sample shows how to relinquish identity to activities above it in the task stack. </p> <p><a href="http://github.com/googlesamples/android-DocumentCentricRelinquishIdentity">Get it on GitHub</a></p> <h3 id="AppRestrictionEnforcer">AppRestrictionEnforcer</h3> <p> This sample demonstrates how to set restrictions to other apps as a profile owner. Use AppRestrictionSchema sample as a app with available restrictions. </p> <p><a href="http://github.com/googlesamples/android-AppRestrictionEnforcer">Get it on GitHub</a></p> <h3 id="AppRestrictionSchema">AppRestrictionSchema</h3> <p> 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. </p> <p><a href="http://github.com/googlesamples/android-AppRestrictionSchema">Get it on GitHub</a></p>