afohrman 7b4e6d356c Improve logic for setting box background mode.
Using a switch statement to ensure that the box background mode is only ever set to one of the BoxBackgroundMode constants. Also pulled the logic out into its own method to improve readability in the already large constructor, and added a check to make sure that the box background's GradientDrawable is only created if a background is requested.

PiperOrigin-RevId: 167194185
2017-09-21 14:44:38 -04:00
2017-04-19 16:56:46 -07:00
2017-05-08 16:48:53 -07:00
2017-04-19 16:56:46 -07:00
…
…
2017-05-09 13:01:29 -07:00

Build Status Chat

Material Components for Android

Material Components for Android (MDC-Android) help developers execute Material Design. Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional Android apps.

Material Components for Android are based on Android’s Design support library (DesignLib) which will continue to be released as part of Android’s SDK.

Documentation

Description
Modular and customizable Material Design UI components for Android
Readme Apache-2.0 191 MiB
Languages
Java 99.9%
Kotlin 0.1%