Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Material buttons on <21 API #30

Closed
carstenhag opened this issue Feb 28, 2015 · 3 comments
Closed

No Material buttons on <21 API #30

carstenhag opened this issue Feb 28, 2015 · 3 comments
Assignees

Comments

@carstenhag
Copy link

Hi, just trying out this lib. I'm trying to get material buttons with ripple effect on 4.1 (API 16) or up but only ugly normal ones show up.

Emulator with API19 on the left side, layout.xml on the right side.

0

Neither buttons have ripple.

Using a API 21 emulator both buttons have ripple effect and look like Material Buttons.

@carstenhag
Copy link
Author

I guess I have to manually set this stuff? Would be nicer of course if it were automatic. Material-Dialogs does this automagically.

@ZieIony
Copy link
Owner

ZieIony commented Feb 28, 2015

Carbon adds ripples and shadows automatically, when using one of the supplied themes. Each theme specifies carbon_rippleColor attribute, which enables ripples in compatible componenets. Please check if your theme extends one of the Carbon themes.

The second thing is that if you wish to use shadows rendered by Carbon, you have to replace Android layouts with Carbon equivalents. Shadows are drawn by layouts containing shadow casters.

@ZieIony ZieIony self-assigned this Feb 28, 2015
@ZieIony
Copy link
Owner

ZieIony commented Mar 7, 2015

no answer for 7 days - closing

@ZieIony ZieIony closed this as completed Mar 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants