Created
January 29, 2020 12:27
-
-
Save nickbutcher/60b03553e278ed6f4c35d26cc2c59a39 to your computer and use it in GitHub Desktop.
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 2019 Google LLC. | |
SPDX-License-Identifier: Apache-2.0 */ | |
interface ColorPalette { | |
@ColorInt val colorPrimary | |
@ColorInt val colorSecondary | |
} | |
class MyView(colors: ColorPalette) { | |
fab.backgroundTint = colors.colorPrimary | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment