Created
April 3, 2020 11:51
-
-
Save ricknout/6edd18e47b98e4143f84b4fd3d1cfb58 to your computer and use it in GitHub Desktop.
MDC-Android shape theming
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 --> | |
| <style name="Theme.App" parent="Theme.MaterialComponents.*"> | |
| ... | |
| + <item name="shapeAppearanceSmallComponent">@style/ShapeAppearance.App.SmallComponent</item> | |
| + <item name="shapeAppearanceMediumComponent">@style/ShapeAppearance.App.MediumComponent</item> | |
| + <item name="shapeAppearanceLargeComponent">@style/ShapeAppearance.App.LargeComponent</item> | |
| </style> | |
| +<style name="ShapeAppearance.App.SmallComponent" | |
| + parent="ShapeAppearance.MaterialComponents.SmallComponent"> | |
| + <item name="cornerFamily">rounded</item> | |
| + <item name="cornerSize">8dp</item> | |
| +</style> | |
| +<style name="ShapeAppearance.App.MediumComponent" | |
| + parent="ShapeAppearance.MaterialComponents.MediumComponent"> | |
| + <item name="cornerFamily">rounded</item> | |
| + <item name="cornerSize">12dp</item> | |
| +</style> | |
| +<style name="ShapeAppearance.App.LargeComponent" | |
| + parent="ShapeAppearance.MaterialComponents.LargeComponent"> | |
| + <item name="cornerFamily">rounded</item> | |
| + <item name="cornerSize">16dp</item> | |
| +</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment