I am trying to use new Activity transitions in a new SDK.
I tried this line:
getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS);
But the problem is that Window does not include FEATURE_CONTENT_TRANSITIONS .
I also tried this line:
getWindow().setExitTransition(new Explode());
And the Explode class does not exist ...
I have already established that my project must be compiled using the L SDK (android-L) and use the new SDK tools (20.0.0)
build.gradle:
apply plugin: 'com.android.application' android { compileSdkVersion 'android-L' buildToolsVersion '20.0.0' defaultConfig { applicationId 'com.tester' minSdkVersion 'L' targetSdkVersion 'L' versionCode 1 versionName '1.0' } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } productFlavors { } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile "com.android.support:support-v4:+" } buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.12.+' } }
source share