B4A Library NineOldAndroids

Informatix

Expert
Licensed User
Longtime User
Since PROPERTY_TRANSLATION_Z does not exist, should I use PROPERTY_SCALE_X - PROPERTY_SCALE_Y to simulate a translation on Z?
PROPERTY_SCALE is not for translation. And it's not possible to translate along the Z axis before Android API 21 so it's not included in this library. The CameraDistance property can be used for this purpose, but I did not test the effective result. Under most recent Android versions (API >=21), you can try "setTranslationZ" with JavaObject.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…