isabellekim 1f4ea84a33 Adding dimension resources for ripple ColorStateLists.
Because ripples are implemented differently for different API levels, we are adding dimension resources that can be used when specific alphas are desired for the pressed, focused, and hovered states.

Ripples on top of surface color should use:
mtrl_low_ripple_pressed_alpha: effective 12%
mtrl_low_ripple_focused_alpha: effective 12%
mtrl_low_ripple_hovered_alpha: effective 4%
mtrl_low_ripple_default_alpha: effective 0%

Ripples on top of primary / secondary colors should use:
mtrl_high_ripple_pressed_alpha: effective 24%
mtrl_high_ripple_focused_alpha: effective 24%
mtrl_high_ripple_hovered_alpha: effective 8%
mtrl_high_ripple_default_alpha: effective 0%

Note: the "default" alpha needs to be non-zero for API 22-27 in order to prevent ripples for terminating prematurely.
PiperOrigin-RevId: 253825206
2019-06-24 16:44:58 -04:00
2019-06-18 13:57:49 -04:00
2019-06-18 13:21:02 -04:00
2019-06-18 13:41:56 -04:00
2019-06-18 13:45:23 -04:00
2016-12-12 16:01:31 -08:00
2017-05-08 16:48:53 -07:00
2019-06-24 16:41:35 -04:00
2019-05-06 10:32:39 -04: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 is a drop-in replacement for Android's Design Support Library.

Getting Started

For information on how to get started with Material Components for Android, take a look at our Getting Started guide.

Submitting Bugs or Feature Requests

For usage questions: ask on Stack Overflow.

Bugs or feature requests should be submitted at https://issuetracker.google.com/issues/new?component=439535

Documentation

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