Created
July 30, 2020 13:48
-
-
Save ricknout/194aa9009b1595a08ae5dd5e797b2120 to your computer and use it in GitHub Desktop.
MDC-Android prefer color attributes
This file contains hidden or 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 --> | |
<Button | |
... | |
- app:backgroundTint="@color/green_300" | |
+ app:backgroundTint="?attr/colorPrimary" | |
- android:textColor="@color/black" | |
+ android:textColor="?attr/colorOnPrimary" | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment