Created
July 31, 2020 19:55
-
-
Save ricknout/a6a45d3a4e525c323954ba928b8b609b to your computer and use it in GitHub Desktop.
MDC-Android MaterialShapeDrawable elevation and overlays
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright 2020 Google LLC. | |
SPDX-License-Identifier: Apache-2.0 */ | |
// Initialize elevation overlays | |
msd.initializeElevationOverlay(context) | |
// Pass elevation value to MSD to apply overlay (in dark theme) | |
msd.setElevation(elevation) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment