This post demonstrates how to programmatically set the translationZ
attribute for a view using: ViewCompat.setTranslationZ(view, translationZ);
in an API level that is less than 21.
Is there a way to do this in XML only with an AppCompatImageView
or is it only possible programatically?
My AppCompatImageView
is inside of a ConstraintLayout