Android L ViewAnimationUtils not found?

I tested the Android L SDK and am trying to get acquainted with the new material design and viewing animation.

In particular, I want to try to make the Reveal effect work correctly, but the class is missing.

http://developer.android.com/preview/material/animations.html#reveal

A specific line that doesn't work for me,

ValueAnimator anim = ViewAnimationUtils.createCircularReveal(myView, cx, cy, 0, finalRadius); 

The ViewAnimationUtils class is missing - or am I missing some dependencies?

EDIT: for targetSDK, minSDK and compileSDK, I have these settings in the build.gradle file.

 compileSdkVersion 'android-L' buildToolsVersion '20.0.0' defaultConfig { minSdkVersion 'L' targetSdkVersion 'L' versionCode 1 versionName '1.0' } 
+6
source share
1 answer

Just compile L and add the following.

 import android.view.ViewAnimationUtils; 

As I noted above, this looks like a bug in the release of the Android studio. Android Studio reports an error, but the application is still working.

+6
source

Source: https://habr.com/ru/post/971395/


All Articles