android - setCardElevation no effect pre Lollipop -



android - setCardElevation no effect pre Lollipop -

setcardelevation has no effect me on 4.4 device - works on 5.0 - read in documentation should work on pre-l - have different than:

cardview.setcardelevation(8dp)

try using this:

cardview.setmaxcardelevation(8);

from cardview docs:

if want alter elevation dynamically, should phone call setmaxcardelevation(float) when cardview initialized.

android material-design android-cardview

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -