diff options
Diffstat (limited to 'ui/views/Elevation/ElevationDrag/README.md')
-rw-r--r-- | ui/views/Elevation/ElevationDrag/README.md | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/ui/views/Elevation/ElevationDrag/README.md b/ui/views/Elevation/ElevationDrag/README.md index f3c21296..542361c7 100644 --- a/ui/views/Elevation/ElevationDrag/README.md +++ b/ui/views/Elevation/ElevationDrag/README.md @@ -1,17 +1,38 @@ + Android ElevationDrag Sample -============================== +=================================== + +This sample demonstrates a drag and drop action on different shapes. Elevation and +z-translation are used to render the shadows and the views are clipped using different +Outlines. + +Introduction +------------ This sample demonstrates a drag and drop action on different shapes. Elevation and z-translation are used to render the shadows and the views are clipped using different Outlines. +Elevation is considered the static or initial position of a view on the z axis, while +translationZ exists for transient states, like animations. + +`Z = elevation + translationZ` + +See [Assign Elevation to Your Views][1] for more info. +[1]:https://developer.android.com/training/material/shadows-clipping.html#Elevation + Pre-requisites -------------- -- Android SDK (L Developer Preview) -- Android Build Tools v20 +- Android SDK v21 +- Android Build Tools v22.0.1 - Android Support Repository +Screenshots +------------- + +<img src="screenshots/1-main.png" height="400" alt="Screenshot"/> + Getting Started --------------- @@ -42,7 +63,7 @@ file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 +http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |