I'm trying to use the new Activity transitions in the new SDK.
I tried this line:
getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS);
But the problem is that Window
doesn't include FEATURE_CONTENT_TRANSITIONS
.
I also tried this line:
getWindow().setExitTransition(new Explode());
And Explode
class doesn't exist...
I already set my project to be compiled with 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.+'
}
}