2

Using AppCompat v7, inheriting theme from AppCompat theme, running my app on Lollipop device or Emulator, Buttons and ImageButtons respond with ripple effect on touch but are neither elevated nor animated on the click. Should not be default features?

Manifest.xml:

    <uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="21" />

Update It seems that:

  • ImageButton has only ripple effect by default
  • Button works with default features but misses ripple effect, elevation and z-animation on click if is present personalized android:background property (as color or selector) in xml element
GPack
  • 2,494
  • 4
  • 19
  • 50
  • In my opinion it is not the same: I am experiencing the default behavior of appcompat v7 on platform lollipop for buttons, depending on the presence or absence of `android:background` property. – GPack Nov 26 '14 at 17:11

1 Answers1

0

I am pretty sure elevation is not supported in the support lib.

Booger
  • 18,579
  • 7
  • 55
  • 72