Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickbutcher/60b03553e278ed6f4c35d26cc2c59a39 to your computer and use it in GitHub Desktop.
Save nickbutcher/60b03553e278ed6f4c35d26cc2c59a39 to your computer and use it in GitHub Desktop.
/* 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