Repository: daimajia/AndroidViewAnimations
Branch: master
Commit: 6a35c466d23e
Files: 99
Total size: 161.4 KB
Directory structure:
gitextract_z2hbnmcy/
├── .gitignore
├── .travis.yml
├── License
├── README.md
├── build.gradle
├── demo/
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src/
│ └── main/
│ ├── AndroidManifest.xml
│ ├── java/
│ │ └── com/
│ │ └── daimajia/
│ │ └── androidanimations/
│ │ ├── EffectAdapter.java
│ │ ├── ExampleActivity.java
│ │ └── MyActivity.java
│ └── res/
│ ├── layout/
│ │ ├── activity_my.xml
│ │ ├── example.xml
│ │ └── item.xml
│ ├── menu/
│ │ └── my.xml
│ ├── values/
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── values-w820dp/
│ └── dimens.xml
├── gradle/
│ └── wrapper/
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── library/
│ ├── .gitignore
│ ├── build.gradle
│ ├── gradle-mvn-push.gradle
│ ├── gradle.properties
│ ├── proguard-rules.pro
│ └── src/
│ └── main/
│ ├── AndroidManifest.xml
│ ├── java/
│ │ └── com/
│ │ └── daimajia/
│ │ └── androidanimations/
│ │ └── library/
│ │ ├── BaseViewAnimator.java
│ │ ├── Techniques.java
│ │ ├── YoYo.java
│ │ ├── attention/
│ │ │ ├── BounceAnimator.java
│ │ │ ├── FlashAnimator.java
│ │ │ ├── PulseAnimator.java
│ │ │ ├── RubberBandAnimator.java
│ │ │ ├── ShakeAnimator.java
│ │ │ ├── StandUpAnimator.java
│ │ │ ├── SwingAnimator.java
│ │ │ ├── TadaAnimator.java
│ │ │ ├── WaveAnimator.java
│ │ │ └── WobbleAnimator.java
│ │ ├── bouncing_entrances/
│ │ │ ├── BounceInAnimator.java
│ │ │ ├── BounceInDownAnimator.java
│ │ │ ├── BounceInLeftAnimator.java
│ │ │ ├── BounceInRightAnimator.java
│ │ │ └── BounceInUpAnimator.java
│ │ ├── fading_entrances/
│ │ │ ├── FadeInAnimator.java
│ │ │ ├── FadeInDownAnimator.java
│ │ │ ├── FadeInLeftAnimator.java
│ │ │ ├── FadeInRightAnimator.java
│ │ │ └── FadeInUpAnimator.java
│ │ ├── fading_exits/
│ │ │ ├── FadeOutAnimator.java
│ │ │ ├── FadeOutDownAnimator.java
│ │ │ ├── FadeOutLeftAnimator.java
│ │ │ ├── FadeOutRightAnimator.java
│ │ │ └── FadeOutUpAnimator.java
│ │ ├── flippers/
│ │ │ ├── FlipInXAnimator.java
│ │ │ ├── FlipInYAnimator.java
│ │ │ ├── FlipOutXAnimator.java
│ │ │ └── FlipOutYAnimator.java
│ │ ├── rotating_entrances/
│ │ │ ├── RotateInAnimator.java
│ │ │ ├── RotateInDownLeftAnimator.java
│ │ │ ├── RotateInDownRightAnimator.java
│ │ │ ├── RotateInUpLeftAnimator.java
│ │ │ └── RotateInUpRightAnimator.java
│ │ ├── rotating_exits/
│ │ │ ├── RotateOutAnimator.java
│ │ │ ├── RotateOutDownLeftAnimator.java
│ │ │ ├── RotateOutDownRightAnimator.java
│ │ │ ├── RotateOutUpLeftAnimator.java
│ │ │ └── RotateOutUpRightAnimator.java
│ │ ├── sliders/
│ │ │ ├── SlideInDownAnimator.java
│ │ │ ├── SlideInLeftAnimator.java
│ │ │ ├── SlideInRightAnimator.java
│ │ │ ├── SlideInUpAnimator.java
│ │ │ ├── SlideOutDownAnimator.java
│ │ │ ├── SlideOutLeftAnimator.java
│ │ │ ├── SlideOutRightAnimator.java
│ │ │ └── SlideOutUpAnimator.java
│ │ ├── specials/
│ │ │ ├── HingeAnimator.java
│ │ │ ├── RollInAnimator.java
│ │ │ ├── RollOutAnimator.java
│ │ │ ├── in/
│ │ │ │ ├── DropOutAnimator.java
│ │ │ │ └── LandingAnimator.java
│ │ │ └── out/
│ │ │ └── TakingOffAnimator.java
│ │ ├── zooming_entrances/
│ │ │ ├── ZoomInAnimator.java
│ │ │ ├── ZoomInDownAnimator.java
│ │ │ ├── ZoomInLeftAnimator.java
│ │ │ ├── ZoomInRightAnimator.java
│ │ │ └── ZoomInUpAnimator.java
│ │ └── zooming_exits/
│ │ ├── ZoomOutAnimator.java
│ │ ├── ZoomOutDownAnimator.java
│ │ ├── ZoomOutLeftAnimator.java
│ │ ├── ZoomOutRightAnimator.java
│ │ └── ZoomOutUpAnimator.java
│ └── res/
│ └── values/
│ └── strings.xml
└── settings.gradle
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
.gradle
/local.properties
/.idea/workspace.xml
.DS_Store
/build
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
.DS_Store
# generated files
bin/
gen/
Wiki/
# Local configuration file (sdk path, etc)
local.properties
# Eclipse project files
.classpath
.project
.settings/
# Proguard folder generated by Eclipse
proguard/
#Android Studio
build/
# Intellij project files
*.iml
*.ipr
*.iws
.idea/
#gradle
.gradle/
================================================
FILE: .travis.yml
================================================
language: android
android:
components:
- tools
- platform-tools
- build-tools-25.0.2
- android-25
- extra-android-support
- extra
- extra-android-m2repository
script:
- ./gradlew assembleDebug
================================================
FILE: License
================================================
The MIT License (MIT)
Copyright (c) 2014 daimajia
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: README.md
================================================
# Android View Animations [](https://travis-ci.org/daimajia/AndroidViewAnimations)
One day, I saw [an iOS library](https://github.com/ArtFeel/AFViewShaker), which is a view shaker, it's very beautiful. I think Android also need one, and should be better.
So, I started to collect animation effects... and in two days, this project born.
# Demo

[Download Demo](https://github.com/daimajia/AndroidViewAnimations/releases/download/v1.1.2/AndroidViewAnimations-1.1.2.apk)
# Usage
> Since Version 2.0, NineOldAndroids has been removed. Thanks Jake Wharton.
For making animations more real, I created another project named [Android Easing Functions](https://github.com/daimajia/AnimationEasingFunctions) which is an implementations of [easing functions](http://easings.net/) on Android. So, we need to dependent that project.
## Step 1
#### Gradle
```groovy
dependencies {
implementation 'com.daimajia.androidanimations:library:2.4@aar'
}
```
#### Maven
```xml
<dependency>
<groupId>com.daimajia.androidanimation</groupId>
<artifactId>library</artifactId>
<version>2.4</version>
</dependency>
```
## Step 2
Just like play Yo-yo.
```java
YoYo.with(Techniques.Tada)
.duration(700)
.repeat(5)
.playOn(findViewById(R.id.edit_area));
```
### Effects
#### Attension
`Flash`, `Pulse`, `RubberBand`, `Shake`, `Swing`, `Wobble`, `Bounce`, `Tada`, `StandUp`, `Wave`
#### Special
`Hinge`, `RollIn`, `RollOut`,`Landing`,`TakingOff`,`DropOut`
#### Bounce
`BounceIn`, `BounceInDown`, `BounceInLeft`, `BounceInRight`, `BounceInUp`
#### Fade
`FadeIn`, `FadeInUp`, `FadeInDown`, `FadeInLeft`, `FadeInRight`
`FadeOut`, `FadeOutDown`, `FadeOutLeft`, `FadeOutRight`, `FadeOutUp`
#### Flip
`FlipInX`, `FlipOutX`, `FlipOutY`
#### Rotate
`RotateIn`, `RotateInDownLeft`, `RotateInDownRight`, `RotateInUpLeft`, `RotateInUpRight`
`RotateOut`, `RotateOutDownLeft`, `RotateOutDownRight`, `RotateOutUpLeft`, `RotateOutUpRight`
#### Slide
`SlideInLeft`, `SlideInRight`, `SlideInUp`, `SlideInDown`
`SlideOutLeft`, `SlideOutRight`, `SlideOutUp`, `SlideOutDown`
#### Zoom
`ZoomIn`, `ZoomInDown`, `ZoomInLeft`, `ZoomInRight`, `ZoomInUp`
`ZoomOut`, `ZoomOutDown`, `ZoomOutLeft`, `ZoomOutRight`, `ZoomOutUp`
Welcome contribute your amazing animation effect. :-D
# Thanks
- [AFViewShaker](https://github.com/ArtFeel/AFViewShaker)
- [Animate.css](https://github.com/daneden/animate.css)
# Why YoYo?
YoYo is a [toy](https://en.wikipedia.org/wiki/Yo-yo), with a lot of [Techniques](./library/src/main/java/com/daimajia/androidanimations/library/Techniques.java).
# About me
(2013)
A student in mainland China.
Welcome to [offer me an internship](mailto:daimajia@gmail.com).
If you have any new idea about this project, feel free to [contact me](mailto:daimajia@gmail.com).
(2019)
Five years later, now I become an investment associate in China.
Welcome to send your business plan to [me](mailto:daimajia@gmail.com). Maybe I would have a better understanding on your startup project than others. Trust me.
================================================
FILE: build.gradle
================================================
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
}
}
allprojects {
repositories {
jcenter()
google()
}
}
================================================
FILE: demo/.gitignore
================================================
/build
================================================
FILE: demo/build.gradle
================================================
apply plugin: 'com.android.application'
android {
compileSdkVersion COMPILE_SDK_VERSION.toInteger()
defaultConfig {
applicationId GROUP
minSdkVersion MIN_SDK_VERSION.toInteger()
targetSdkVersion TARGET_SDK_VERSION.toInteger()
versionCode VERSION_CODE.toInteger()
versionName VERSION_NAME
}
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions{
abortOnError false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':library')
}
================================================
FILE: demo/proguard-rules.pro
================================================
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Applications/Android Studio.app/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
================================================
FILE: demo/src/main/AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.daimajia.androidanimations" >
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MyActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ExampleActivity"/>
</application>
</manifest>
================================================
FILE: demo/src/main/java/com/daimajia/androidanimations/EffectAdapter.java
================================================
package com.daimajia.androidanimations;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.daimajia.androidanimations.library.Techniques;
public class EffectAdapter extends BaseAdapter {
private Context mContext;
public EffectAdapter(Context context){
mContext = context;
}
@Override
public int getCount() {
return Techniques.values().length;
}
@Override
public Object getItem(int position) {
return Techniques.values()[position].getAnimator();
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public View getView(final int position, View convertView, ViewGroup parent) {
View v = LayoutInflater.from(mContext).inflate(R.layout.item,null,false);
TextView t = (TextView)v.findViewById(R.id.list_item_text);
Object o = getItem(position);
int start = o.getClass().getName().lastIndexOf(".") + 1;
String name = o.getClass().getName().substring(start);
t.setText(name);
v.setTag(Techniques.values()[position]);
return v;
}
}
================================================
FILE: demo/src/main/java/com/daimajia/androidanimations/ExampleActivity.java
================================================
package com.daimajia.androidanimations;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.daimajia.androidanimations.library.Techniques;
import com.daimajia.androidanimations.library.YoYo;
public class ExampleActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.example);
final TextView t = (TextView) findViewById(R.id.notice);
t.setText("Please input your Email and Password");
findViewById(R.id.submit).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
YoYo.with(Techniques.Tada)
.duration(700)
.playOn(findViewById(R.id.edit_area));
t.setText("Wrong password!");
}
});
final TextView t2 = (TextView) findViewById(R.id.notice2);
t2.setText("Please input your Email and Password");
findViewById(R.id.submit2).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
YoYo.with(Techniques.Shake).playOn(findViewById(R.id.edit_area2));
t2.setText("Wrong password!");
}
});
}
}
================================================
FILE: demo/src/main/java/com/daimajia/androidanimations/MyActivity.java
================================================
package com.daimajia.androidanimations;
import android.animation.Animator;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.Toast;
import com.daimajia.androidanimations.library.Techniques;
import com.daimajia.androidanimations.library.YoYo;
public class MyActivity extends Activity {
private ListView mListView;
private EffectAdapter mAdapter;
private View mTarget;
private YoYo.YoYoString rope;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_my);
mListView = (ListView) findViewById(R.id.list_items);
mTarget = findViewById(R.id.hello_world);
mAdapter = new EffectAdapter(this);
mListView.setAdapter(mAdapter);
mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
if (rope != null) {
rope.stop(true);
}
Techniques technique = (Techniques) view.getTag();
rope = YoYo.with(technique)
.duration(1200)
.repeat(YoYo.INFINITE)
.pivot(YoYo.CENTER_PIVOT, YoYo.CENTER_PIVOT)
.interpolate(new AccelerateDecelerateInterpolator())
.withListener(new Animator.AnimatorListener() {
@Override
public void onAnimationStart(Animator animation) {
}
@Override
public void onAnimationEnd(Animator animation) {
}
@Override
public void onAnimationCancel(Animator animation) {
Toast.makeText(MyActivity.this, "canceled previous animation", Toast.LENGTH_SHORT).show();
}
@Override
public void onAnimationRepeat(Animator animation) {
}
})
.playOn(mTarget);
}
});
findViewById(R.id.hello_world).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (rope != null) {
rope.stop(true);
}
}
});
}
@Override
public void onWindowFocusChanged(boolean hasFocus) {
if (hasFocus) {
rope = YoYo.with(Techniques.FadeIn).duration(1000).playOn(mTarget);// after start,just click mTarget view, rope is not init
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.my, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
startActivity(new Intent(this, ExampleActivity.class));
return true;
}
return super.onOptionsItemSelected(item);
}
}
================================================
FILE: demo/src/main/res/layout/activity_my.xml
================================================
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MyActivity">
<LinearLayout
android:id="@+id/wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:gravity="center"
android:layout_weight="1"
android:padding="30dp"
android:textSize="40sp"
android:id="@+id/hello_world"
android:text="@string/hello_world"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<ListView
android:id="@+id/list_items"
android:layout_below="@+id/wrapper"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</RelativeLayout>
================================================
FILE: demo/src/main/res/layout/example.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:padding="@dimen/activity_horizontal_margin"
android:layout_height="match_parent">
<LinearLayout
android:padding="@dimen/activity_horizontal_margin"
android:id="@+id/edit_area2"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:hint="Username"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<EditText
android:hint="Password"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:padding="@dimen/activity_horizontal_margin"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/notice2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button
android:id="@+id/submit2"
android:text="Submit"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:padding="@dimen/activity_horizontal_margin"
android:id="@+id/edit_area"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:hint="Username"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<EditText
android:hint="Password"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:padding="@dimen/activity_horizontal_margin"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/notice"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button
android:id="@+id/submit"
android:text="Submit"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</ScrollView>
================================================
FILE: demo/src/main/res/layout/item.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="50dp"
android:id="@+id/list_item_text"
android:textSize="16sp"
android:gravity="left|center_vertical"
android:padding="10dp" />
================================================
FILE: demo/src/main/res/menu/my.xml
================================================
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context=".MyActivity" >
<item android:id="@+id/action_settings"
android:title="@string/action_example"
android:orderInCategory="100"
android:showAsAction="always" />
</menu>
================================================
FILE: demo/src/main/res/values/dimens.xml
================================================
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
</resources>
================================================
FILE: demo/src/main/res/values/strings.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">AndroidAnimations</string>
<string name="hello_world">Hello world!</string>
<string name="action_example">Example</string>
</resources>
================================================
FILE: demo/src/main/res/values/styles.xml
================================================
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
</resources>
================================================
FILE: demo/src/main/res/values-w820dp/dimens.xml
================================================
<resources>
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
<dimen name="activity_horizontal_margin">64dp</dimen>
</resources>
================================================
FILE: gradle/wrapper/gradle-wrapper.properties
================================================
#Sat Aug 22 18:15:38 CST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
================================================
FILE: gradle.properties
================================================
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Settings specified in this file will override any Gradle settings
# configured through the IDE.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
COMPILE_SDK_VERSION=29
TARGET_SDK_VERSION=29
MIN_SDK_VERSION=14
VERSION_NAME=2.4
VERSION_CODE=32
GROUP=com.daimajia.androidanimations
POM_DESCRIPTION=Collect android animations
POM_URL=https://github.com/daimajia/AndroidAnimations
POM_SCM_URL=https://github.com/daimajia/AndroidAnimations
POM_SCM_CONNECTION=scm:https://github.com/daimajia/AndroidAnimations.git
POM_SCM_DEV_CONNECTION=scm:https://github.com/daimajia/AndroidAnimations.git
POM_LICENCE_NAME=MIT
POM_LICENCE_URL=http://opensource.org/licenses/MIT
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=daimajia
POM_DEVELOPER_NAME=daimajia
android.useAndroidX=true
android.enableJetifier=true
================================================
FILE: gradlew
================================================
#!/usr/bin/env bash
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn ( ) {
echo "$*"
}
die ( ) {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched.
if $cygwin ; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
fi
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >&-
APP_HOME="`pwd -P`"
cd "$SAVED" >&-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
JVM_OPTS=("$@")
}
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
================================================
FILE: gradlew.bat
================================================
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windowz variants
if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
goto execute
:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
================================================
FILE: library/.gitignore
================================================
/build
================================================
FILE: library/build.gradle
================================================
apply plugin: 'com.android.library'
android {
compileSdkVersion COMPILE_SDK_VERSION.toInteger()
defaultConfig {
minSdkVersion MIN_SDK_VERSION.toInteger()
targetSdkVersion TARGET_SDK_VERSION.toInteger()
versionCode VERSION_CODE.toInteger()
versionName VERSION_NAME
}
buildTypes {
release {
minifyEnabled false
consumerProguardFiles 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.daimajia.easing:library:2.4@aar'
implementation 'androidx.core:core:1.3.1'
}
apply from: './gradle-mvn-push.gradle'
================================================
FILE: library/gradle-mvn-push.gradle
================================================
/*
* Copyright 2013 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: 'maven'
apply plugin: 'signing'
def isReleaseBuild() {
return VERSION_NAME.contains("SNAPSHOT") == false
}
def getReleaseRepositoryUrl() {
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
}
def getSnapshotRepositoryUrl() {
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
: "https://oss.sonatype.org/content/repositories/snapshots/"
}
def getRepositoryUsername() {
return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
}
def getRepositoryPassword() {
return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
}
afterEvaluate { project ->
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
pom.groupId = GROUP
pom.artifactId = POM_ARTIFACT_ID
pom.version = VERSION_NAME
repository(url: getReleaseRepositoryUrl()) {
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
}
snapshotRepository(url: getSnapshotRepositoryUrl()) {
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
}
pom.project {
name POM_NAME
packaging POM_PACKAGING
description POM_DESCRIPTION
url POM_URL
scm {
url POM_SCM_URL
connection POM_SCM_CONNECTION
developerConnection POM_SCM_DEV_CONNECTION
}
licenses {
license {
name POM_LICENCE_NAME
url POM_LICENCE_URL
distribution POM_LICENCE_DIST
}
}
developers {
developer {
id POM_DEVELOPER_ID
name POM_DEVELOPER_NAME
}
}
}
}
}
}
signing {
required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
task apklib(type: Zip){
appendix = extension = 'apklib'
from 'AndroidManifest.xml'
into('res') {
from 'res'
}
into('src') {
from 'src'
}
}
task jar(type: Jar) {
from android.sourceSets.main.java.srcDirs
}
task androidJavadocs(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath() .join(File.pathSeparator))
}
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
classifier = 'javadoc'
from androidJavadocs.destinationDir
}
task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}
artifacts {
archives androidSourcesJar
archives androidJavadocsJar
archives apklib
archives jar
}
}
================================================
FILE: library/gradle.properties
================================================
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Settings specified in this file will override any Gradle settings
# configured through the IDE.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
POM_NAME=AndroidAnimations Library
POM_ARTIFACT_ID=library
POM_PACKAGING=aar
================================================
FILE: library/proguard-rules.pro
================================================
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Applications/Android Studio.app/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
-keep class com.daimajia.androidanimations.** { *; }
-keep interface com.daimajia.androidanimations.** { *; }
================================================
FILE: library/src/main/AndroidManifest.xml
================================================
<manifest package="com.daimajia.androidanimations.library">
</manifest>
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/BaseViewAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ValueAnimator;
import android.view.View;
import android.view.animation.Interpolator;
import androidx.core.view.ViewCompat;
public abstract class BaseViewAnimator {
public static final long DURATION = 1000;
private AnimatorSet mAnimatorSet;
private long mDuration = DURATION;
private int mRepeatTimes = 0;
private int mRepeatMode = ValueAnimator.RESTART;
{
mAnimatorSet = new AnimatorSet();
}
protected abstract void prepare(View target);
public BaseViewAnimator setTarget(View target) {
reset(target);
prepare(target);
return this;
}
public void animate() {
start();
}
public void restart() {
mAnimatorSet = mAnimatorSet.clone();
start();
}
/**
* reset the view to default status
*
* @param target
*/
public void reset(View target) {
ViewCompat.setAlpha(target, 1);
ViewCompat.setScaleX(target, 1);
ViewCompat.setScaleY(target, 1);
ViewCompat.setTranslationX(target, 0);
ViewCompat.setTranslationY(target, 0);
ViewCompat.setRotation(target, 0);
ViewCompat.setRotationY(target, 0);
ViewCompat.setRotationX(target, 0);
}
/**
* start to animate
*/
public void start() {
for (Animator animator : mAnimatorSet.getChildAnimations()) {
if (animator instanceof ValueAnimator) {
((ValueAnimator) animator).setRepeatCount(mRepeatTimes);
((ValueAnimator) animator).setRepeatMode(mRepeatMode);
}
}
mAnimatorSet.setDuration(mDuration);
mAnimatorSet.start();
}
public BaseViewAnimator setDuration(long duration) {
mDuration = duration;
return this;
}
public BaseViewAnimator setStartDelay(long delay) {
getAnimatorAgent().setStartDelay(delay);
return this;
}
public long getStartDelay() {
return mAnimatorSet.getStartDelay();
}
public BaseViewAnimator addAnimatorListener(Animator.AnimatorListener l) {
mAnimatorSet.addListener(l);
return this;
}
public void cancel() {
mAnimatorSet.cancel();
}
public boolean isRunning() {
return mAnimatorSet.isRunning();
}
public boolean isStarted() {
return mAnimatorSet.isStarted();
}
public void removeAnimatorListener(Animator.AnimatorListener l) {
mAnimatorSet.removeListener(l);
}
public void removeAllListener() {
mAnimatorSet.removeAllListeners();
}
public BaseViewAnimator setInterpolator(Interpolator interpolator) {
mAnimatorSet.setInterpolator(interpolator);
return this;
}
public long getDuration() {
return mDuration;
}
public AnimatorSet getAnimatorAgent() {
return mAnimatorSet;
}
public BaseViewAnimator setRepeatTimes(int repeatTimes) {
mRepeatTimes = repeatTimes;
return this;
}
public BaseViewAnimator setRepeatMode(int repeatMode) {
mRepeatMode = repeatMode;
return this;
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/Techniques.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library;
import com.daimajia.androidanimations.library.attention.BounceAnimator;
import com.daimajia.androidanimations.library.attention.FlashAnimator;
import com.daimajia.androidanimations.library.attention.PulseAnimator;
import com.daimajia.androidanimations.library.attention.RubberBandAnimator;
import com.daimajia.androidanimations.library.attention.ShakeAnimator;
import com.daimajia.androidanimations.library.attention.StandUpAnimator;
import com.daimajia.androidanimations.library.attention.SwingAnimator;
import com.daimajia.androidanimations.library.attention.TadaAnimator;
import com.daimajia.androidanimations.library.attention.WaveAnimator;
import com.daimajia.androidanimations.library.attention.WobbleAnimator;
import com.daimajia.androidanimations.library.bouncing_entrances.BounceInAnimator;
import com.daimajia.androidanimations.library.bouncing_entrances.BounceInDownAnimator;
import com.daimajia.androidanimations.library.bouncing_entrances.BounceInLeftAnimator;
import com.daimajia.androidanimations.library.bouncing_entrances.BounceInRightAnimator;
import com.daimajia.androidanimations.library.bouncing_entrances.BounceInUpAnimator;
import com.daimajia.androidanimations.library.fading_entrances.FadeInAnimator;
import com.daimajia.androidanimations.library.fading_entrances.FadeInDownAnimator;
import com.daimajia.androidanimations.library.fading_entrances.FadeInLeftAnimator;
import com.daimajia.androidanimations.library.fading_entrances.FadeInRightAnimator;
import com.daimajia.androidanimations.library.fading_entrances.FadeInUpAnimator;
import com.daimajia.androidanimations.library.fading_exits.FadeOutAnimator;
import com.daimajia.androidanimations.library.fading_exits.FadeOutDownAnimator;
import com.daimajia.androidanimations.library.fading_exits.FadeOutLeftAnimator;
import com.daimajia.androidanimations.library.fading_exits.FadeOutRightAnimator;
import com.daimajia.androidanimations.library.fading_exits.FadeOutUpAnimator;
import com.daimajia.androidanimations.library.flippers.FlipInXAnimator;
import com.daimajia.androidanimations.library.flippers.FlipInYAnimator;
import com.daimajia.androidanimations.library.flippers.FlipOutXAnimator;
import com.daimajia.androidanimations.library.flippers.FlipOutYAnimator;
import com.daimajia.androidanimations.library.rotating_entrances.RotateInAnimator;
import com.daimajia.androidanimations.library.rotating_entrances.RotateInDownLeftAnimator;
import com.daimajia.androidanimations.library.rotating_entrances.RotateInDownRightAnimator;
import com.daimajia.androidanimations.library.rotating_entrances.RotateInUpLeftAnimator;
import com.daimajia.androidanimations.library.rotating_entrances.RotateInUpRightAnimator;
import com.daimajia.androidanimations.library.rotating_exits.RotateOutAnimator;
import com.daimajia.androidanimations.library.rotating_exits.RotateOutDownLeftAnimator;
import com.daimajia.androidanimations.library.rotating_exits.RotateOutDownRightAnimator;
import com.daimajia.androidanimations.library.rotating_exits.RotateOutUpLeftAnimator;
import com.daimajia.androidanimations.library.rotating_exits.RotateOutUpRightAnimator;
import com.daimajia.androidanimations.library.sliders.SlideInDownAnimator;
import com.daimajia.androidanimations.library.sliders.SlideInLeftAnimator;
import com.daimajia.androidanimations.library.sliders.SlideInRightAnimator;
import com.daimajia.androidanimations.library.sliders.SlideInUpAnimator;
import com.daimajia.androidanimations.library.sliders.SlideOutDownAnimator;
import com.daimajia.androidanimations.library.sliders.SlideOutLeftAnimator;
import com.daimajia.androidanimations.library.sliders.SlideOutRightAnimator;
import com.daimajia.androidanimations.library.sliders.SlideOutUpAnimator;
import com.daimajia.androidanimations.library.specials.HingeAnimator;
import com.daimajia.androidanimations.library.specials.RollInAnimator;
import com.daimajia.androidanimations.library.specials.RollOutAnimator;
import com.daimajia.androidanimations.library.specials.in.DropOutAnimator;
import com.daimajia.androidanimations.library.specials.in.LandingAnimator;
import com.daimajia.androidanimations.library.specials.out.TakingOffAnimator;
import com.daimajia.androidanimations.library.zooming_entrances.ZoomInAnimator;
import com.daimajia.androidanimations.library.zooming_entrances.ZoomInDownAnimator;
import com.daimajia.androidanimations.library.zooming_entrances.ZoomInLeftAnimator;
import com.daimajia.androidanimations.library.zooming_entrances.ZoomInRightAnimator;
import com.daimajia.androidanimations.library.zooming_entrances.ZoomInUpAnimator;
import com.daimajia.androidanimations.library.zooming_exits.ZoomOutAnimator;
import com.daimajia.androidanimations.library.zooming_exits.ZoomOutDownAnimator;
import com.daimajia.androidanimations.library.zooming_exits.ZoomOutLeftAnimator;
import com.daimajia.androidanimations.library.zooming_exits.ZoomOutRightAnimator;
import com.daimajia.androidanimations.library.zooming_exits.ZoomOutUpAnimator;
public enum Techniques {
DropOut(DropOutAnimator.class),
Landing(LandingAnimator.class),
TakingOff(TakingOffAnimator.class),
Flash(FlashAnimator.class),
Pulse(PulseAnimator.class),
RubberBand(RubberBandAnimator.class),
Shake(ShakeAnimator.class),
Swing(SwingAnimator.class),
Wobble(WobbleAnimator.class),
Bounce(BounceAnimator.class),
Tada(TadaAnimator.class),
StandUp(StandUpAnimator.class),
Wave(WaveAnimator.class),
Hinge(HingeAnimator.class),
RollIn(RollInAnimator.class),
RollOut(RollOutAnimator.class),
BounceIn(BounceInAnimator.class),
BounceInDown(BounceInDownAnimator.class),
BounceInLeft(BounceInLeftAnimator.class),
BounceInRight(BounceInRightAnimator.class),
BounceInUp(BounceInUpAnimator.class),
FadeIn(FadeInAnimator.class),
FadeInUp(FadeInUpAnimator.class),
FadeInDown(FadeInDownAnimator.class),
FadeInLeft(FadeInLeftAnimator.class),
FadeInRight(FadeInRightAnimator.class),
FadeOut(FadeOutAnimator.class),
FadeOutDown(FadeOutDownAnimator.class),
FadeOutLeft(FadeOutLeftAnimator.class),
FadeOutRight(FadeOutRightAnimator.class),
FadeOutUp(FadeOutUpAnimator.class),
FlipInX(FlipInXAnimator.class),
FlipOutX(FlipOutXAnimator.class),
FlipInY(FlipInYAnimator.class),
FlipOutY(FlipOutYAnimator.class),
RotateIn(RotateInAnimator.class),
RotateInDownLeft(RotateInDownLeftAnimator.class),
RotateInDownRight(RotateInDownRightAnimator.class),
RotateInUpLeft(RotateInUpLeftAnimator.class),
RotateInUpRight(RotateInUpRightAnimator.class),
RotateOut(RotateOutAnimator.class),
RotateOutDownLeft(RotateOutDownLeftAnimator.class),
RotateOutDownRight(RotateOutDownRightAnimator.class),
RotateOutUpLeft(RotateOutUpLeftAnimator.class),
RotateOutUpRight(RotateOutUpRightAnimator.class),
SlideInLeft(SlideInLeftAnimator.class),
SlideInRight(SlideInRightAnimator.class),
SlideInUp(SlideInUpAnimator.class),
SlideInDown(SlideInDownAnimator.class),
SlideOutLeft(SlideOutLeftAnimator.class),
SlideOutRight(SlideOutRightAnimator.class),
SlideOutUp(SlideOutUpAnimator.class),
SlideOutDown(SlideOutDownAnimator.class),
ZoomIn(ZoomInAnimator.class),
ZoomInDown(ZoomInDownAnimator.class),
ZoomInLeft(ZoomInLeftAnimator.class),
ZoomInRight(ZoomInRightAnimator.class),
ZoomInUp(ZoomInUpAnimator.class),
ZoomOut(ZoomOutAnimator.class),
ZoomOutDown(ZoomOutDownAnimator.class),
ZoomOutLeft(ZoomOutLeftAnimator.class),
ZoomOutRight(ZoomOutRightAnimator.class),
ZoomOutUp(ZoomOutUpAnimator.class);
private Class animatorClazz;
private Techniques(Class clazz) {
animatorClazz = clazz;
}
public BaseViewAnimator getAnimator() {
try {
return (BaseViewAnimator) animatorClazz.newInstance();
} catch (Exception e) {
throw new Error("Can not init animatorClazz instance");
}
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/YoYo.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.view.View;
import android.view.animation.Interpolator;
import androidx.core.view.ViewCompat;
import java.util.ArrayList;
import java.util.List;
public class YoYo {
private static final long DURATION = BaseViewAnimator.DURATION;
private static final long NO_DELAY = 0;
public static final int INFINITE = -1;
public static final float CENTER_PIVOT = Float.MAX_VALUE;
private BaseViewAnimator animator;
private long duration;
private long delay;
private boolean repeat;
private int repeatTimes;
private int repeatMode;
private Interpolator interpolator;
private float pivotX, pivotY;
private List<Animator.AnimatorListener> callbacks;
private View target;
private YoYo(AnimationComposer animationComposer) {
animator = animationComposer.animator;
duration = animationComposer.duration;
delay = animationComposer.delay;
repeat = animationComposer.repeat;
repeatTimes = animationComposer.repeatTimes;
repeatMode = animationComposer.repeatMode;
interpolator = animationComposer.interpolator;
pivotX = animationComposer.pivotX;
pivotY = animationComposer.pivotY;
callbacks = animationComposer.callbacks;
target = animationComposer.target;
}
public static AnimationComposer with(Techniques techniques) {
return new AnimationComposer(techniques);
}
public static AnimationComposer with(BaseViewAnimator animator) {
return new AnimationComposer(animator);
}
public interface AnimatorCallback {
public void call(Animator animator);
}
private static class EmptyAnimatorListener implements Animator.AnimatorListener {
@Override
public void onAnimationStart(Animator animation) {
}
@Override
public void onAnimationEnd(Animator animation) {
}
@Override
public void onAnimationCancel(Animator animation) {
}
@Override
public void onAnimationRepeat(Animator animation) {
}
}
public static final class AnimationComposer {
private List<Animator.AnimatorListener> callbacks = new ArrayList<>();
private BaseViewAnimator animator;
private long duration = DURATION;
private long delay = NO_DELAY;
private boolean repeat = false;
private int repeatTimes = 0;
private int repeatMode = ValueAnimator.RESTART;
private float pivotX = YoYo.CENTER_PIVOT, pivotY = YoYo.CENTER_PIVOT;
private Interpolator interpolator;
private View target;
private AnimationComposer(Techniques techniques) {
this.animator = techniques.getAnimator();
}
private AnimationComposer(BaseViewAnimator animator) {
this.animator = animator;
}
public AnimationComposer duration(long duration) {
this.duration = duration;
return this;
}
public AnimationComposer delay(long delay) {
this.delay = delay;
return this;
}
public AnimationComposer interpolate(Interpolator interpolator) {
this.interpolator = interpolator;
return this;
}
public AnimationComposer pivot(float pivotX, float pivotY) {
this.pivotX = pivotX;
this.pivotY = pivotY;
return this;
}
public AnimationComposer pivotX(float pivotX) {
this.pivotX = pivotX;
return this;
}
public AnimationComposer pivotY(float pivotY) {
this.pivotY = pivotY;
return this;
}
public AnimationComposer repeat(int times) {
if (times < INFINITE) {
throw new RuntimeException("Can not be less than -1, -1 is infinite loop");
}
repeat = times != 0;
repeatTimes = times;
return this;
}
public AnimationComposer repeatMode(int mode) {
repeatMode = mode;
return this;
}
public AnimationComposer withListener(Animator.AnimatorListener listener) {
callbacks.add(listener);
return this;
}
public AnimationComposer onStart(final AnimatorCallback callback) {
callbacks.add(new EmptyAnimatorListener() {
@Override
public void onAnimationStart(Animator animation) {
callback.call(animation);
}
});
return this;
}
public AnimationComposer onEnd(final AnimatorCallback callback) {
callbacks.add(new EmptyAnimatorListener() {
@Override
public void onAnimationEnd(Animator animation) {
callback.call(animation);
}
});
return this;
}
public AnimationComposer onCancel(final AnimatorCallback callback) {
callbacks.add(new EmptyAnimatorListener() {
@Override
public void onAnimationCancel(Animator animation) {
callback.call(animation);
}
});
return this;
}
public AnimationComposer onRepeat(final AnimatorCallback callback) {
callbacks.add(new EmptyAnimatorListener() {
@Override
public void onAnimationRepeat(Animator animation) {
callback.call(animation);
}
});
return this;
}
public YoYoString playOn(View target) {
this.target = target;
return new YoYoString(new YoYo(this).play(), this.target);
}
}
/**
* YoYo string, you can use this string to control your YoYo.
*/
public static final class YoYoString {
private BaseViewAnimator animator;
private View target;
private YoYoString(BaseViewAnimator animator, View target) {
this.target = target;
this.animator = animator;
}
public boolean isStarted() {
return animator.isStarted();
}
public boolean isRunning() {
return animator.isRunning();
}
public void stop() {
stop(true);
}
public void stop(boolean reset) {
animator.cancel();
if (reset)
animator.reset(target);
}
}
private BaseViewAnimator play() {
animator.setTarget(target);
if (pivotX == YoYo.CENTER_PIVOT) {
ViewCompat.setPivotX(target, target.getMeasuredWidth() / 2.0f);
} else {
target.setPivotX(pivotX);
}
if (pivotY == YoYo.CENTER_PIVOT) {
ViewCompat.setPivotY(target, target.getMeasuredHeight() / 2.0f);
} else {
target.setPivotY(pivotY);
}
animator.setDuration(duration)
.setRepeatTimes(repeatTimes)
.setRepeatMode(repeatMode)
.setInterpolator(interpolator)
.setStartDelay(delay);
if (callbacks.size() > 0) {
for (Animator.AnimatorListener callback : callbacks) {
animator.addAnimatorListener(callback);
}
}
animator.animate();
return animator;
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/BounceAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.attention;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class BounceAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "translationY", 0, 0, -30, 0, -15, 0, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/FlashAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.attention;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FlashAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0, 1, 0, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/PulseAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.attention;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class PulseAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "scaleY", 1, 1.1f, 1),
ObjectAnimator.ofFloat(target, "scaleX", 1, 1.1f, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/RubberBandAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.attention;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class RubberBandAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "scaleX", 1, 1.25f, 0.75f, 1.15f, 1),
ObjectAnimator.ofFloat(target, "scaleY", 1, 0.75f, 1.25f, 0.85f, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/ShakeAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.attention;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class ShakeAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "translationX", 0, 25, -25, 25, -25, 15, -15, 6, -6, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/StandUpAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.attention;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class StandUpAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
float x = (target.getWidth() - target.getPaddingLeft() - target.getPaddingRight()) / 2
+ target.getPaddingLeft();
float y = target.getHeight() - target.getPaddingBottom();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "pivotX", x, x, x, x, x),
ObjectAnimator.ofFloat(target, "pivotY", y, y, y, y, y),
ObjectAnimator.ofFloat(target, "rotationX", 55, -30, 15, -15, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/SwingAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.attention;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class SwingAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "rotation", 0, 10, -10, 6, -6, 3, -3, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/TadaAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.attention;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class TadaAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "scaleX", 1, 0.9f, 0.9f, 1.1f, 1.1f, 1.1f, 1.1f, 1.1f, 1.1f, 1),
ObjectAnimator.ofFloat(target, "scaleY", 1, 0.9f, 0.9f, 1.1f, 1.1f, 1.1f, 1.1f, 1.1f, 1.1f, 1),
ObjectAnimator.ofFloat(target, "rotation", 0, -3, -3, 3, -3, 3, -3, 3, -3, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/WaveAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.attention;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class WaveAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
float x = (target.getWidth() - target.getPaddingLeft() - target.getPaddingRight()) / 2
+ target.getPaddingLeft();
float y = target.getHeight() - target.getPaddingBottom();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "rotation", 12, -12, 3, -3, 0),
ObjectAnimator.ofFloat(target, "pivotX", x, x, x, x, x),
ObjectAnimator.ofFloat(target, "pivotY", y, y, y, y, y)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/WobbleAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.attention;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class WobbleAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
float width = target.getWidth();
float one = (float) (width / 100.0);
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "translationX", 0 * one, -25 * one, 20 * one, -15 * one, 10 * one, -5 * one, 0 * one, 0),
ObjectAnimator.ofFloat(target, "rotation", 0, -5, 3, -3, 2, -1, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.bouncing_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class BounceInAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1, 1, 1),
ObjectAnimator.ofFloat(target, "scaleX", 0.3f, 1.05f, 0.9f, 1),
ObjectAnimator.ofFloat(target, "scaleY", 0.3f, 1.05f, 0.9f, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInDownAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.bouncing_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class BounceInDownAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1, 1, 1),
ObjectAnimator.ofFloat(target, "translationY", -target.getHeight(), 30, -10, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInLeftAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.bouncing_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class BounceInLeftAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "translationX", -target.getWidth(), 30, -10, 0),
ObjectAnimator.ofFloat(target, "alpha", 0, 1, 1, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInRightAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.bouncing_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class BounceInRightAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "translationX", target.getMeasuredWidth() + target.getWidth(), -30, 10, 0),
ObjectAnimator.ofFloat(target, "alpha", 0, 1, 1, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInUpAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.bouncing_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class BounceInUpAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "translationY", target.getMeasuredHeight(), -30, 10, 0),
ObjectAnimator.ofFloat(target, "alpha", 0, 1, 1, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.fading_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FadeInAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInDownAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.fading_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FadeInDownAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
ObjectAnimator.ofFloat(target, "translationY", -target.getHeight() / 4, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInLeftAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.fading_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FadeInLeftAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
ObjectAnimator.ofFloat(target, "translationX", -target.getWidth() / 4, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInRightAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.fading_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FadeInRightAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
ObjectAnimator.ofFloat(target, "translationX", target.getWidth() / 4, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInUpAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.fading_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FadeInUpAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
ObjectAnimator.ofFloat(target, "translationY", target.getHeight() / 4, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.fading_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FadeOutAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutDownAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.fading_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FadeOutDownAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "translationY", 0, target.getHeight() / 4)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutLeftAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.fading_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FadeOutLeftAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "translationX", 0, -target.getWidth() / 4)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutRightAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.fading_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FadeOutRightAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "translationX", 0, target.getWidth() / 4)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutUpAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.fading_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FadeOutUpAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "translationY", 0, -target.getHeight() / 4)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/flippers/FlipInXAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.flippers;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FlipInXAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "rotationX", 90, -15, 15, 0),
ObjectAnimator.ofFloat(target, "alpha", 0.25f, 0.5f, 0.75f, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/flippers/FlipInYAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.flippers;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FlipInYAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "rotationY", 90, -15, 15, 0),
ObjectAnimator.ofFloat(target, "alpha", 0.25f, 0.5f, 0.75f, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/flippers/FlipOutXAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.flippers;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FlipOutXAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "rotationX", 0, 90),
ObjectAnimator.ofFloat(target, "alpha", 1, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/flippers/FlipOutYAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.flippers;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class FlipOutYAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "rotationY", 0, 90),
ObjectAnimator.ofFloat(target, "alpha", 1, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.rotating_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class RotateInAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "rotation", -200, 0),
ObjectAnimator.ofFloat(target, "alpha", 0, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInDownLeftAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.rotating_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class RotateInDownLeftAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
float x = target.getPaddingLeft();
float y = target.getHeight() - target.getPaddingBottom();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "rotation", -90, 0),
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
ObjectAnimator.ofFloat(target, "pivotX", x, x),
ObjectAnimator.ofFloat(target, "pivotY", y, y)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInDownRightAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.rotating_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class RotateInDownRightAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
float x = target.getWidth() - target.getPaddingRight();
float y = target.getHeight() - target.getPaddingBottom();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "rotation", 90, 0),
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
ObjectAnimator.ofFloat(target, "pivotX", x, x),
ObjectAnimator.ofFloat(target, "pivotY", y, y)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInUpLeftAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.rotating_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class RotateInUpLeftAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
float x = target.getPaddingLeft();
float y = target.getHeight() - target.getPaddingBottom();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "rotation", 90, 0),
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
ObjectAnimator.ofFloat(target, "pivotX", x, x),
ObjectAnimator.ofFloat(target, "pivotY", y, y)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInUpRightAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.rotating_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class RotateInUpRightAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
float x = target.getWidth() - target.getPaddingRight();
float y = target.getHeight() - target.getPaddingBottom();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "rotation", -90, 0),
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
ObjectAnimator.ofFloat(target, "pivotX", x, x),
ObjectAnimator.ofFloat(target, "pivotY", y, y)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.rotating_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class RotateOutAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "rotation", 0, 200)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutDownLeftAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.rotating_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class RotateOutDownLeftAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
float x = target.getPaddingLeft();
float y = target.getHeight() - target.getPaddingBottom();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "rotation", 0, 90),
ObjectAnimator.ofFloat(target, "pivotX", x, x),
ObjectAnimator.ofFloat(target, "pivotY", y, y)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutDownRightAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.rotating_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class RotateOutDownRightAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
float x = target.getWidth() - target.getPaddingRight();
float y = target.getHeight() - target.getPaddingBottom();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "rotation", 0, -90),
ObjectAnimator.ofFloat(target, "pivotX", x, x),
ObjectAnimator.ofFloat(target, "pivotY", y, y)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutUpLeftAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.rotating_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class RotateOutUpLeftAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
float x = target.getPaddingLeft();
float y = target.getHeight() - target.getPaddingBottom();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "rotation", 0, -90),
ObjectAnimator.ofFloat(target, "pivotX", x, x),
ObjectAnimator.ofFloat(target, "pivotY", y, y)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutUpRightAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.rotating_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class RotateOutUpRightAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
float x = target.getWidth() - target.getPaddingRight();
float y = target.getHeight() - target.getPaddingBottom();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "rotation", 0, 90),
ObjectAnimator.ofFloat(target, "pivotX", x, x),
ObjectAnimator.ofFloat(target, "pivotY", y, y)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideInDownAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.sliders;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class SlideInDownAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
int distance = target.getTop() + target.getHeight();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
ObjectAnimator.ofFloat(target, "translationY", -distance, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideInLeftAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.sliders;
import android.animation.ObjectAnimator;
import android.view.View;
import android.view.ViewGroup;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class SlideInLeftAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
ViewGroup parent = (ViewGroup) target.getParent();
int distance = parent.getWidth() - target.getLeft();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
ObjectAnimator.ofFloat(target, "translationX", -distance, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideInRightAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.sliders;
import android.animation.ObjectAnimator;
import android.view.View;
import android.view.ViewGroup;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class SlideInRightAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
ViewGroup parent = (ViewGroup) target.getParent();
int distance = parent.getWidth() - target.getLeft();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
ObjectAnimator.ofFloat(target, "translationX", distance, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideInUpAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.sliders;
import android.animation.ObjectAnimator;
import android.view.View;
import android.view.ViewGroup;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class SlideInUpAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
ViewGroup parent = (ViewGroup) target.getParent();
int distance = parent.getHeight() - target.getTop();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
ObjectAnimator.ofFloat(target, "translationY", distance, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideOutDownAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.sliders;
import android.animation.ObjectAnimator;
import android.view.View;
import android.view.ViewGroup;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class SlideOutDownAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
ViewGroup parent = (ViewGroup) target.getParent();
int distance = parent.getHeight() - target.getTop();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "translationY", 0, distance)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideOutLeftAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.sliders;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class SlideOutLeftAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "translationX", 0, -target.getRight())
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideOutRightAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.sliders;
import android.animation.ObjectAnimator;
import android.view.View;
import android.view.ViewGroup;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class SlideOutRightAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
ViewGroup parent = (ViewGroup) target.getParent();
int distance = parent.getWidth() - target.getLeft();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "translationX", 0, distance)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideOutUpAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.sliders;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class SlideOutUpAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "translationY", 0, -target.getBottom())
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/specials/HingeAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.specials;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
import com.daimajia.easing.Glider;
import com.daimajia.easing.Skill;
public class HingeAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
float x = target.getPaddingLeft();
float y = target.getPaddingTop();
getAnimatorAgent().playTogether(
Glider.glide(Skill.SineEaseInOut, 1300, ObjectAnimator.ofFloat(target, "rotation", 0, 80, 60, 80, 60, 60)),
ObjectAnimator.ofFloat(target, "translationY", 0, 0, 0, 0, 0, 700),
ObjectAnimator.ofFloat(target, "alpha", 1, 1, 1, 1, 1, 0),
ObjectAnimator.ofFloat(target, "pivotX", x, x, x, x, x, x),
ObjectAnimator.ofFloat(target, "pivotY", y, y, y, y, y, y)
);
setDuration(1300);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/specials/RollInAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.specials;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class RollInAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
ObjectAnimator.ofFloat(target, "translationX", -(target.getWidth() - target.getPaddingLeft() - target.getPaddingRight()), 0),
ObjectAnimator.ofFloat(target, "rotation", -120, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/specials/RollOutAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.specials;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class RollOutAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0),
ObjectAnimator.ofFloat(target, "translationX", 0, target.getWidth()),
ObjectAnimator.ofFloat(target, "rotation", 0, 120)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/specials/in/DropOutAnimator.java
================================================
package com.daimajia.androidanimations.library.specials.in;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
import com.daimajia.easing.Glider;
import com.daimajia.easing.Skill;
public class DropOutAnimator extends BaseViewAnimator {
@Override
protected void prepare(View target) {
int distance = target.getTop() + target.getHeight();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1),
Glider.glide(Skill.BounceEaseOut, getDuration(), ObjectAnimator.ofFloat(target, "translationY", -distance, 0))
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/specials/in/LandingAnimator.java
================================================
package com.daimajia.androidanimations.library.specials.in;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
import com.daimajia.easing.Glider;
import com.daimajia.easing.Skill;
public class LandingAnimator extends BaseViewAnimator {
@Override
protected void prepare(View target) {
getAnimatorAgent().playTogether(
Glider.glide(Skill.QuintEaseOut, getDuration(), ObjectAnimator.ofFloat(target, "scaleX", 1.5f, 1f)),
Glider.glide(Skill.QuintEaseOut, getDuration(), ObjectAnimator.ofFloat(target, "scaleY", 1.5f, 1f)),
Glider.glide(Skill.QuintEaseOut, getDuration(), ObjectAnimator.ofFloat(target, "alpha", 0, 1f))
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/specials/out/TakingOffAnimator.java
================================================
package com.daimajia.androidanimations.library.specials.out;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
import com.daimajia.easing.Glider;
import com.daimajia.easing.Skill;
public class TakingOffAnimator extends BaseViewAnimator {
@Override
protected void prepare(View target) {
getAnimatorAgent().playTogether(
Glider.glide(Skill.QuintEaseOut, getDuration(), ObjectAnimator.ofFloat(target, "scaleX", 1f, 1.5f)),
Glider.glide(Skill.QuintEaseOut, getDuration(), ObjectAnimator.ofFloat(target, "scaleY", 1f, 1.5f)),
Glider.glide(Skill.QuintEaseOut, getDuration(), ObjectAnimator.ofFloat(target, "alpha", 1, 0))
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.zooming_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class ZoomInAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "scaleX", 0.45f, 1),
ObjectAnimator.ofFloat(target, "scaleY", 0.45f, 1),
ObjectAnimator.ofFloat(target, "alpha", 0, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInDownAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.zooming_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class ZoomInDownAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "scaleX", 0.1f, 0.475f, 1),
ObjectAnimator.ofFloat(target, "scaleY", 0.1f, 0.475f, 1),
ObjectAnimator.ofFloat(target, "translationY", -target.getBottom(), 60, 0),
ObjectAnimator.ofFloat(target, "alpha", 0, 1, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInLeftAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.zooming_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class ZoomInLeftAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "scaleX", 0.1f, 0.475f, 1),
ObjectAnimator.ofFloat(target, "scaleY", 0.1f, 0.475f, 1),
ObjectAnimator.ofFloat(target, "translationX", -target.getRight(), 48, 0),
ObjectAnimator.ofFloat(target, "alpha", 0, 1, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInRightAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.zooming_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class ZoomInRightAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "scaleX", 0.1f, 0.475f, 1),
ObjectAnimator.ofFloat(target, "scaleY", 0.1f, 0.475f, 1),
ObjectAnimator.ofFloat(target, "translationX", target.getWidth() + target.getPaddingRight(), -48, 0),
ObjectAnimator.ofFloat(target, "alpha", 0, 1, 1)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInUpAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.zooming_entrances;
import android.animation.ObjectAnimator;
import android.view.View;
import android.view.ViewGroup;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class ZoomInUpAnimator extends BaseViewAnimator {
@Override
public void prepare(View target) {
ViewGroup parent = (ViewGroup) target.getParent();
int distance = parent.getHeight() - target.getTop();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 0, 1, 1),
ObjectAnimator.ofFloat(target, "scaleX", 0.1f, 0.475f, 1),
ObjectAnimator.ofFloat(target, "scaleY", 0.1f, 0.475f, 1),
ObjectAnimator.ofFloat(target, "translationY", distance, -60, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.zooming_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class ZoomOutAnimator extends BaseViewAnimator {
@Override
protected void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 0, 0),
ObjectAnimator.ofFloat(target, "scaleX", 1, 0.3f, 0),
ObjectAnimator.ofFloat(target, "scaleY", 1, 0.3f, 0)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutDownAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.zooming_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import android.view.ViewGroup;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class ZoomOutDownAnimator extends BaseViewAnimator {
@Override
protected void prepare(View target) {
ViewGroup parent = (ViewGroup) target.getParent();
int distance = parent.getHeight() - target.getTop();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 1, 0),
ObjectAnimator.ofFloat(target, "scaleX", 1, 0.475f, 0.1f),
ObjectAnimator.ofFloat(target, "scaleY", 1, 0.475f, 0.1f),
ObjectAnimator.ofFloat(target, "translationY", 0, -60, distance)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutLeftAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.zooming_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class ZoomOutLeftAnimator extends BaseViewAnimator {
@Override
protected void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 1, 0),
ObjectAnimator.ofFloat(target, "scaleX", 1, 0.475f, 0.1f),
ObjectAnimator.ofFloat(target, "scaleY", 1, 0.475f, 0.1f),
ObjectAnimator.ofFloat(target, "translationX", 0, 42, -target.getRight())
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutRightAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.zooming_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import android.view.ViewGroup;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class ZoomOutRightAnimator extends BaseViewAnimator {
@Override
protected void prepare(View target) {
ViewGroup parent = (ViewGroup) target.getParent();
int distance = parent.getWidth() - parent.getLeft();
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 1, 0),
ObjectAnimator.ofFloat(target, "scaleX", 1, 0.475f, 0.1f),
ObjectAnimator.ofFloat(target, "scaleY", 1, 0.475f, 0.1f),
ObjectAnimator.ofFloat(target, "translationX", 0, -42, distance)
);
}
}
================================================
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutUpAnimator.java
================================================
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 daimajia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.daimajia.androidanimations.library.zooming_exits;
import android.animation.ObjectAnimator;
import android.view.View;
import com.daimajia.androidanimations.library.BaseViewAnimator;
public class ZoomOutUpAnimator extends BaseViewAnimator {
@Override
protected void prepare(View target) {
getAnimatorAgent().playTogether(
ObjectAnimator.ofFloat(target, "alpha", 1, 1, 0),
ObjectAnimator.ofFloat(target, "scaleX", 1, 0.475f, 0.1f),
ObjectAnimator.ofFloat(target, "scaleY", 1, 0.475f, 0.1f),
ObjectAnimator.ofFloat(target, "translationY", 0, 60, -target.getBottom())
);
}
}
================================================
FILE: library/src/main/res/values/strings.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- hack to prevent missing R.txt, it's pretty wired.-->
<string name="android_animations_lib_name">AndroidAnimations</string>
</resources>
================================================
FILE: settings.gradle
================================================
include ':library', 'demo'
gitextract_z2hbnmcy/ ├── .gitignore ├── .travis.yml ├── License ├── README.md ├── build.gradle ├── demo/ │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src/ │ └── main/ │ ├── AndroidManifest.xml │ ├── java/ │ │ └── com/ │ │ └── daimajia/ │ │ └── androidanimations/ │ │ ├── EffectAdapter.java │ │ ├── ExampleActivity.java │ │ └── MyActivity.java │ └── res/ │ ├── layout/ │ │ ├── activity_my.xml │ │ ├── example.xml │ │ └── item.xml │ ├── menu/ │ │ └── my.xml │ ├── values/ │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── values-w820dp/ │ └── dimens.xml ├── gradle/ │ └── wrapper/ │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle.properties ├── gradlew ├── gradlew.bat ├── library/ │ ├── .gitignore │ ├── build.gradle │ ├── gradle-mvn-push.gradle │ ├── gradle.properties │ ├── proguard-rules.pro │ └── src/ │ └── main/ │ ├── AndroidManifest.xml │ ├── java/ │ │ └── com/ │ │ └── daimajia/ │ │ └── androidanimations/ │ │ └── library/ │ │ ├── BaseViewAnimator.java │ │ ├── Techniques.java │ │ ├── YoYo.java │ │ ├── attention/ │ │ │ ├── BounceAnimator.java │ │ │ ├── FlashAnimator.java │ │ │ ├── PulseAnimator.java │ │ │ ├── RubberBandAnimator.java │ │ │ ├── ShakeAnimator.java │ │ │ ├── StandUpAnimator.java │ │ │ ├── SwingAnimator.java │ │ │ ├── TadaAnimator.java │ │ │ ├── WaveAnimator.java │ │ │ └── WobbleAnimator.java │ │ ├── bouncing_entrances/ │ │ │ ├── BounceInAnimator.java │ │ │ ├── BounceInDownAnimator.java │ │ │ ├── BounceInLeftAnimator.java │ │ │ ├── BounceInRightAnimator.java │ │ │ └── BounceInUpAnimator.java │ │ ├── fading_entrances/ │ │ │ ├── FadeInAnimator.java │ │ │ ├── FadeInDownAnimator.java │ │ │ ├── FadeInLeftAnimator.java │ │ │ ├── FadeInRightAnimator.java │ │ │ └── FadeInUpAnimator.java │ │ ├── fading_exits/ │ │ │ ├── FadeOutAnimator.java │ │ │ ├── FadeOutDownAnimator.java │ │ │ ├── FadeOutLeftAnimator.java │ │ │ ├── FadeOutRightAnimator.java │ │ │ └── FadeOutUpAnimator.java │ │ ├── flippers/ │ │ │ ├── FlipInXAnimator.java │ │ │ ├── FlipInYAnimator.java │ │ │ ├── FlipOutXAnimator.java │ │ │ └── FlipOutYAnimator.java │ │ ├── rotating_entrances/ │ │ │ ├── RotateInAnimator.java │ │ │ ├── RotateInDownLeftAnimator.java │ │ │ ├── RotateInDownRightAnimator.java │ │ │ ├── RotateInUpLeftAnimator.java │ │ │ └── RotateInUpRightAnimator.java │ │ ├── rotating_exits/ │ │ │ ├── RotateOutAnimator.java │ │ │ ├── RotateOutDownLeftAnimator.java │ │ │ ├── RotateOutDownRightAnimator.java │ │ │ ├── RotateOutUpLeftAnimator.java │ │ │ └── RotateOutUpRightAnimator.java │ │ ├── sliders/ │ │ │ ├── SlideInDownAnimator.java │ │ │ ├── SlideInLeftAnimator.java │ │ │ ├── SlideInRightAnimator.java │ │ │ ├── SlideInUpAnimator.java │ │ │ ├── SlideOutDownAnimator.java │ │ │ ├── SlideOutLeftAnimator.java │ │ │ ├── SlideOutRightAnimator.java │ │ │ └── SlideOutUpAnimator.java │ │ ├── specials/ │ │ │ ├── HingeAnimator.java │ │ │ ├── RollInAnimator.java │ │ │ ├── RollOutAnimator.java │ │ │ ├── in/ │ │ │ │ ├── DropOutAnimator.java │ │ │ │ └── LandingAnimator.java │ │ │ └── out/ │ │ │ └── TakingOffAnimator.java │ │ ├── zooming_entrances/ │ │ │ ├── ZoomInAnimator.java │ │ │ ├── ZoomInDownAnimator.java │ │ │ ├── ZoomInLeftAnimator.java │ │ │ ├── ZoomInRightAnimator.java │ │ │ └── ZoomInUpAnimator.java │ │ └── zooming_exits/ │ │ ├── ZoomOutAnimator.java │ │ ├── ZoomOutDownAnimator.java │ │ ├── ZoomOutLeftAnimator.java │ │ ├── ZoomOutRightAnimator.java │ │ └── ZoomOutUpAnimator.java │ └── res/ │ └── values/ │ └── strings.xml └── settings.gradle
SYMBOL INDEX (198 symbols across 69 files)
FILE: demo/src/main/java/com/daimajia/androidanimations/EffectAdapter.java
class EffectAdapter (line 12) | public class EffectAdapter extends BaseAdapter {
method EffectAdapter (line 16) | public EffectAdapter(Context context){
method getCount (line 20) | @Override
method getItem (line 25) | @Override
method getItemId (line 30) | @Override
method getView (line 35) | @Override
FILE: demo/src/main/java/com/daimajia/androidanimations/ExampleActivity.java
class ExampleActivity (line 11) | public class ExampleActivity extends Activity {
method onCreate (line 12) | @Override
FILE: demo/src/main/java/com/daimajia/androidanimations/MyActivity.java
class MyActivity (line 18) | public class MyActivity extends Activity {
method onCreate (line 25) | @Override
method onWindowFocusChanged (line 81) | @Override
method onCreateOptionsMenu (line 89) | @Override
method onOptionsItemSelected (line 96) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/BaseViewAnimator.java
class BaseViewAnimator (line 35) | public abstract class BaseViewAnimator {
method prepare (line 50) | protected abstract void prepare(View target);
method setTarget (line 52) | public BaseViewAnimator setTarget(View target) {
method animate (line 58) | public void animate() {
method restart (line 62) | public void restart() {
method reset (line 72) | public void reset(View target) {
method start (line 86) | public void start() {
method setDuration (line 97) | public BaseViewAnimator setDuration(long duration) {
method setStartDelay (line 102) | public BaseViewAnimator setStartDelay(long delay) {
method getStartDelay (line 107) | public long getStartDelay() {
method addAnimatorListener (line 111) | public BaseViewAnimator addAnimatorListener(Animator.AnimatorListener ...
method cancel (line 116) | public void cancel() {
method isRunning (line 120) | public boolean isRunning() {
method isStarted (line 124) | public boolean isStarted() {
method removeAnimatorListener (line 128) | public void removeAnimatorListener(Animator.AnimatorListener l) {
method removeAllListener (line 132) | public void removeAllListener() {
method setInterpolator (line 136) | public BaseViewAnimator setInterpolator(Interpolator interpolator) {
method getDuration (line 141) | public long getDuration() {
method getAnimatorAgent (line 145) | public AnimatorSet getAnimatorAgent() {
method setRepeatTimes (line 149) | public BaseViewAnimator setRepeatTimes(int repeatTimes) {
method setRepeatMode (line 154) | public BaseViewAnimator setRepeatMode(int repeatMode) {
FILE: library/src/main/java/com/daimajia/androidanimations/library/Techniques.java
type Techniques (line 92) | public enum Techniques {
method Techniques (line 173) | private Techniques(Class clazz) {
method getAnimator (line 177) | public BaseViewAnimator getAnimator() {
FILE: library/src/main/java/com/daimajia/androidanimations/library/YoYo.java
class YoYo (line 38) | public class YoYo {
method YoYo (line 56) | private YoYo(AnimationComposer animationComposer) {
method with (line 70) | public static AnimationComposer with(Techniques techniques) {
method with (line 74) | public static AnimationComposer with(BaseViewAnimator animator) {
type AnimatorCallback (line 78) | public interface AnimatorCallback {
method call (line 79) | public void call(Animator animator);
class EmptyAnimatorListener (line 82) | private static class EmptyAnimatorListener implements Animator.Animato...
method onAnimationStart (line 83) | @Override
method onAnimationEnd (line 87) | @Override
method onAnimationCancel (line 91) | @Override
method onAnimationRepeat (line 95) | @Override
class AnimationComposer (line 100) | public static final class AnimationComposer {
method AnimationComposer (line 115) | private AnimationComposer(Techniques techniques) {
method AnimationComposer (line 119) | private AnimationComposer(BaseViewAnimator animator) {
method duration (line 123) | public AnimationComposer duration(long duration) {
method delay (line 128) | public AnimationComposer delay(long delay) {
method interpolate (line 133) | public AnimationComposer interpolate(Interpolator interpolator) {
method pivot (line 138) | public AnimationComposer pivot(float pivotX, float pivotY) {
method pivotX (line 144) | public AnimationComposer pivotX(float pivotX) {
method pivotY (line 149) | public AnimationComposer pivotY(float pivotY) {
method repeat (line 154) | public AnimationComposer repeat(int times) {
method repeatMode (line 163) | public AnimationComposer repeatMode(int mode) {
method withListener (line 168) | public AnimationComposer withListener(Animator.AnimatorListener list...
method onStart (line 173) | public AnimationComposer onStart(final AnimatorCallback callback) {
method onEnd (line 183) | public AnimationComposer onEnd(final AnimatorCallback callback) {
method onCancel (line 193) | public AnimationComposer onCancel(final AnimatorCallback callback) {
method onRepeat (line 203) | public AnimationComposer onRepeat(final AnimatorCallback callback) {
method playOn (line 213) | public YoYoString playOn(View target) {
class YoYoString (line 223) | public static final class YoYoString {
method YoYoString (line 228) | private YoYoString(BaseViewAnimator animator, View target) {
method isStarted (line 233) | public boolean isStarted() {
method isRunning (line 237) | public boolean isRunning() {
method stop (line 241) | public void stop() {
method stop (line 245) | public void stop(boolean reset) {
method play (line 253) | private BaseViewAnimator play() {
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/BounceAnimator.java
class BounceAnimator (line 32) | public class BounceAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/FlashAnimator.java
class FlashAnimator (line 32) | public class FlashAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/PulseAnimator.java
class PulseAnimator (line 32) | public class PulseAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/RubberBandAnimator.java
class RubberBandAnimator (line 32) | public class RubberBandAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/ShakeAnimator.java
class ShakeAnimator (line 33) | public class ShakeAnimator extends BaseViewAnimator {
method prepare (line 34) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/StandUpAnimator.java
class StandUpAnimator (line 33) | public class StandUpAnimator extends BaseViewAnimator {
method prepare (line 34) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/SwingAnimator.java
class SwingAnimator (line 32) | public class SwingAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/TadaAnimator.java
class TadaAnimator (line 32) | public class TadaAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/WaveAnimator.java
class WaveAnimator (line 32) | public class WaveAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/attention/WobbleAnimator.java
class WobbleAnimator (line 32) | public class WobbleAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInAnimator.java
class BounceInAnimator (line 32) | public class BounceInAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInDownAnimator.java
class BounceInDownAnimator (line 32) | public class BounceInDownAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInLeftAnimator.java
class BounceInLeftAnimator (line 32) | public class BounceInLeftAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInRightAnimator.java
class BounceInRightAnimator (line 32) | public class BounceInRightAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInUpAnimator.java
class BounceInUpAnimator (line 32) | public class BounceInUpAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInAnimator.java
class FadeInAnimator (line 32) | public class FadeInAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInDownAnimator.java
class FadeInDownAnimator (line 32) | public class FadeInDownAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInLeftAnimator.java
class FadeInLeftAnimator (line 32) | public class FadeInLeftAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInRightAnimator.java
class FadeInRightAnimator (line 32) | public class FadeInRightAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInUpAnimator.java
class FadeInUpAnimator (line 32) | public class FadeInUpAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutAnimator.java
class FadeOutAnimator (line 32) | public class FadeOutAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutDownAnimator.java
class FadeOutDownAnimator (line 32) | public class FadeOutDownAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutLeftAnimator.java
class FadeOutLeftAnimator (line 32) | public class FadeOutLeftAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutRightAnimator.java
class FadeOutRightAnimator (line 32) | public class FadeOutRightAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutUpAnimator.java
class FadeOutUpAnimator (line 32) | public class FadeOutUpAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/flippers/FlipInXAnimator.java
class FlipInXAnimator (line 32) | public class FlipInXAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/flippers/FlipInYAnimator.java
class FlipInYAnimator (line 32) | public class FlipInYAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/flippers/FlipOutXAnimator.java
class FlipOutXAnimator (line 32) | public class FlipOutXAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/flippers/FlipOutYAnimator.java
class FlipOutYAnimator (line 32) | public class FlipOutYAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInAnimator.java
class RotateInAnimator (line 32) | public class RotateInAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInDownLeftAnimator.java
class RotateInDownLeftAnimator (line 32) | public class RotateInDownLeftAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInDownRightAnimator.java
class RotateInDownRightAnimator (line 32) | public class RotateInDownRightAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInUpLeftAnimator.java
class RotateInUpLeftAnimator (line 32) | public class RotateInUpLeftAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInUpRightAnimator.java
class RotateInUpRightAnimator (line 32) | public class RotateInUpRightAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutAnimator.java
class RotateOutAnimator (line 32) | public class RotateOutAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutDownLeftAnimator.java
class RotateOutDownLeftAnimator (line 32) | public class RotateOutDownLeftAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutDownRightAnimator.java
class RotateOutDownRightAnimator (line 32) | public class RotateOutDownRightAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutUpLeftAnimator.java
class RotateOutUpLeftAnimator (line 32) | public class RotateOutUpLeftAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutUpRightAnimator.java
class RotateOutUpRightAnimator (line 32) | public class RotateOutUpRightAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideInDownAnimator.java
class SlideInDownAnimator (line 32) | public class SlideInDownAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideInLeftAnimator.java
class SlideInLeftAnimator (line 33) | public class SlideInLeftAnimator extends BaseViewAnimator {
method prepare (line 34) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideInRightAnimator.java
class SlideInRightAnimator (line 33) | public class SlideInRightAnimator extends BaseViewAnimator {
method prepare (line 34) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideInUpAnimator.java
class SlideInUpAnimator (line 33) | public class SlideInUpAnimator extends BaseViewAnimator {
method prepare (line 34) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideOutDownAnimator.java
class SlideOutDownAnimator (line 33) | public class SlideOutDownAnimator extends BaseViewAnimator {
method prepare (line 34) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideOutLeftAnimator.java
class SlideOutLeftAnimator (line 32) | public class SlideOutLeftAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideOutRightAnimator.java
class SlideOutRightAnimator (line 33) | public class SlideOutRightAnimator extends BaseViewAnimator {
method prepare (line 34) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideOutUpAnimator.java
class SlideOutUpAnimator (line 32) | public class SlideOutUpAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/specials/HingeAnimator.java
class HingeAnimator (line 34) | public class HingeAnimator extends BaseViewAnimator {
method prepare (line 35) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/specials/RollInAnimator.java
class RollInAnimator (line 32) | public class RollInAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/specials/RollOutAnimator.java
class RollOutAnimator (line 32) | public class RollOutAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/specials/in/DropOutAnimator.java
class DropOutAnimator (line 10) | public class DropOutAnimator extends BaseViewAnimator {
method prepare (line 11) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/specials/in/LandingAnimator.java
class LandingAnimator (line 10) | public class LandingAnimator extends BaseViewAnimator {
method prepare (line 11) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/specials/out/TakingOffAnimator.java
class TakingOffAnimator (line 10) | public class TakingOffAnimator extends BaseViewAnimator {
method prepare (line 11) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInAnimator.java
class ZoomInAnimator (line 32) | public class ZoomInAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInDownAnimator.java
class ZoomInDownAnimator (line 32) | public class ZoomInDownAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInLeftAnimator.java
class ZoomInLeftAnimator (line 32) | public class ZoomInLeftAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInRightAnimator.java
class ZoomInRightAnimator (line 32) | public class ZoomInRightAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInUpAnimator.java
class ZoomInUpAnimator (line 33) | public class ZoomInUpAnimator extends BaseViewAnimator {
method prepare (line 34) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutAnimator.java
class ZoomOutAnimator (line 32) | public class ZoomOutAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutDownAnimator.java
class ZoomOutDownAnimator (line 33) | public class ZoomOutDownAnimator extends BaseViewAnimator {
method prepare (line 34) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutLeftAnimator.java
class ZoomOutLeftAnimator (line 32) | public class ZoomOutLeftAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutRightAnimator.java
class ZoomOutRightAnimator (line 33) | public class ZoomOutRightAnimator extends BaseViewAnimator {
method prepare (line 34) | @Override
FILE: library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutUpAnimator.java
class ZoomOutUpAnimator (line 32) | public class ZoomOutUpAnimator extends BaseViewAnimator {
method prepare (line 33) | @Override
Condensed preview — 99 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (181K chars).
[
{
"path": ".gitignore",
"chars": 465,
"preview": ".gradle\n/local.properties\n/.idea/workspace.xml\n.DS_Store\n/build\n# built application files\n*.apk\n*.ap_\n\n# files for the d"
},
{
"path": ".travis.yml",
"chars": 210,
"preview": "language: android\nandroid:\n components:\n - tools\n - platform-tools\n - build-tools-25.0.2\n - android-25\n - extra-an"
},
{
"path": "License",
"chars": 1075,
"preview": "The MIT License (MIT)\n\nCopyright (c) 2014 daimajia\n\nPermission is hereby granted, free of charge, to any person obtainin"
},
{
"path": "README.md",
"chars": 3165,
"preview": "# Android View Animations [](https://travis-ci."
},
{
"path": "build.gradle",
"chars": 236,
"preview": "buildscript {\n repositories {\n jcenter()\n google()\n }\n\n dependencies {\n classpath 'com.and"
},
{
"path": "demo/.gitignore",
"chars": 7,
"preview": "/build\n"
},
{
"path": "demo/build.gradle",
"chars": 662,
"preview": "apply plugin: 'com.android.application'\n\nandroid {\n compileSdkVersion COMPILE_SDK_VERSION.toInteger()\n\n defaultCon"
},
{
"path": "demo/proguard-rules.pro",
"chars": 667,
"preview": "# Add project specific ProGuard rules here.\n# By default, the flags in this file are appended to flags specified\n# in /A"
},
{
"path": "demo/src/main/AndroidManifest.xml",
"chars": 748,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n package="
},
{
"path": "demo/src/main/java/com/daimajia/androidanimations/EffectAdapter.java",
"chars": 1267,
"preview": "package com.daimajia.androidanimations;\n\nimport android.content.Context;\nimport android.view.LayoutInflater;\nimport andr"
},
{
"path": "demo/src/main/java/com/daimajia/androidanimations/ExampleActivity.java",
"chars": 1404,
"preview": "package com.daimajia.androidanimations;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.view.View"
},
{
"path": "demo/src/main/java/com/daimajia/androidanimations/MyActivity.java",
"chars": 3831,
"preview": "package com.daimajia.androidanimations;\n\nimport android.animation.Animator;\nimport android.app.Activity;\nimport android."
},
{
"path": "demo/src/main/res/layout/activity_my.xml",
"chars": 1209,
"preview": "\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:tools=\"http://schemas.android.com/"
},
{
"path": "demo/src/main/res/layout/example.xml",
"chars": 2971,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ScrollView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n androi"
},
{
"path": "demo/src/main/res/layout/item.xml",
"chars": 319,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\n<TextView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android"
},
{
"path": "demo/src/main/res/menu/my.xml",
"chars": 384,
"preview": "<menu xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:tools=\"http://schemas.android.com/tools\"\n "
},
{
"path": "demo/src/main/res/values/dimens.xml",
"chars": 211,
"preview": "<resources>\n <!-- Default screen margins, per the Android Design guidelines. -->\n <dimen name=\"activity_horizontal"
},
{
"path": "demo/src/main/res/values/strings.xml",
"chars": 225,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"app_name\">AndroidAnimations</string>\n <string n"
},
{
"path": "demo/src/main/res/values/styles.xml",
"chars": 197,
"preview": "<resources>\n\n <!-- Base application theme. -->\n <style name=\"AppTheme\" parent=\"android:Theme.Holo.Light.DarkAction"
},
{
"path": "demo/src/main/res/values-w820dp/dimens.xml",
"chars": 358,
"preview": "<resources>\n <!-- Example customization of dimensions originally defined in res/values/dimens.xml\n (such as s"
},
{
"path": "gradle/wrapper/gradle-wrapper.properties",
"chars": 232,
"preview": "#Sat Aug 22 18:15:38 CST 2020\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_"
},
{
"path": "gradle.properties",
"chars": 1498,
"preview": "# Project-wide Gradle settings.\n\n# IDE (e.g. Android Studio) users:\n# Settings specified in this file will override any "
},
{
"path": "gradlew",
"chars": 5080,
"preview": "#!/usr/bin/env bash\n\n##############################################################################\n##\n## Gradle start "
},
{
"path": "gradlew.bat",
"chars": 2404,
"preview": "@if \"%DEBUG%\" == \"\" @echo off\r\n@rem ##########################################################################\r\n@rem\r\n@r"
},
{
"path": "library/.gitignore",
"chars": 7,
"preview": "/build\n"
},
{
"path": "library/build.gradle",
"chars": 675,
"preview": "apply plugin: 'com.android.library'\n\nandroid {\n compileSdkVersion COMPILE_SDK_VERSION.toInteger()\n\n defaultConfig "
},
{
"path": "library/gradle-mvn-push.gradle",
"chars": 3981,
"preview": "/*\n * Copyright 2013 Chris Banes\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not us"
},
{
"path": "library/gradle.properties",
"chars": 932,
"preview": "# Project-wide Gradle settings.\n\n# IDE (e.g. Android Studio) users:\n# Settings specified in this file will override any "
},
{
"path": "library/proguard-rules.pro",
"chars": 776,
"preview": "# Add project specific ProGuard rules here.\n# By default, the flags in this file are appended to flags specified\n# in /A"
},
{
"path": "library/src/main/AndroidManifest.xml",
"chars": 74,
"preview": "<manifest package=\"com.daimajia.androidanimations.library\">\n\n\n</manifest>\n"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/BaseViewAnimator.java",
"chars": 4425,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/Techniques.java",
"chars": 9163,
"preview": "\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to an"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/YoYo.java",
"chars": 8733,
"preview": "\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to an"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/attention/BounceAnimator.java",
"chars": 1590,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/attention/FlashAnimator.java",
"chars": 1572,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/attention/PulseAnimator.java",
"chars": 1640,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/attention/RubberBandAnimator.java",
"chars": 1675,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/attention/ShakeAnimator.java",
"chars": 1605,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/attention/StandUpAnimator.java",
"chars": 1935,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/attention/SwingAnimator.java",
"chars": 1589,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/attention/TadaAnimator.java",
"chars": 1818,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/attention/WaveAnimator.java",
"chars": 1928,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/attention/WobbleAnimator.java",
"chars": 1808,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInAnimator.java",
"chars": 1741,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInDownAnimator.java",
"chars": 1682,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInLeftAnimator.java",
"chars": 1682,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInRightAnimator.java",
"chars": 1709,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/bouncing_entrances/BounceInUpAnimator.java",
"chars": 1688,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInAnimator.java",
"chars": 1571,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInDownAnimator.java",
"chars": 1667,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInLeftAnimator.java",
"chars": 1666,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInRightAnimator.java",
"chars": 1666,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/fading_entrances/FadeInUpAnimator.java",
"chars": 1664,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutAnimator.java",
"chars": 1568,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutDownAnimator.java",
"chars": 1663,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutLeftAnimator.java",
"chars": 1663,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutRightAnimator.java",
"chars": 1663,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/fading_exits/FadeOutUpAnimator.java",
"chars": 1662,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/flippers/FlipInXAnimator.java",
"chars": 1658,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/flippers/FlipInYAnimator.java",
"chars": 1658,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/flippers/FlipOutXAnimator.java",
"chars": 1633,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/flippers/FlipOutYAnimator.java",
"chars": 1633,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInAnimator.java",
"chars": 1644,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInDownLeftAnimator.java",
"chars": 1888,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInDownRightAnimator.java",
"chars": 1909,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInUpLeftAnimator.java",
"chars": 1885,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/rotating_entrances/RotateInUpRightAnimator.java",
"chars": 1908,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutAnimator.java",
"chars": 1640,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutDownLeftAnimator.java",
"chars": 1884,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutDownRightAnimator.java",
"chars": 1907,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutUpLeftAnimator.java",
"chars": 1883,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/rotating_exits/RotateOutUpRightAnimator.java",
"chars": 1904,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideInDownAnimator.java",
"chars": 1706,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideInLeftAnimator.java",
"chars": 1796,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideInRightAnimator.java",
"chars": 1796,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideInUpAnimator.java",
"chars": 1793,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideOutDownAnimator.java",
"chars": 1796,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideOutLeftAnimator.java",
"chars": 1655,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideOutRightAnimator.java",
"chars": 1797,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/sliders/SlideOutUpAnimator.java",
"chars": 1654,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/specials/HingeAnimator.java",
"chars": 2117,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/specials/RollInAnimator.java",
"chars": 1774,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/specials/RollOutAnimator.java",
"chars": 1718,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/specials/in/DropOutAnimator.java",
"chars": 686,
"preview": "package com.daimajia.androidanimations.library.specials.in;\n\nimport android.animation.ObjectAnimator;\nimport android.vie"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/specials/in/LandingAnimator.java",
"chars": 781,
"preview": "package com.daimajia.androidanimations.library.specials.in;\n\nimport android.animation.ObjectAnimator;\nimport android.vie"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/specials/out/TakingOffAnimator.java",
"chars": 783,
"preview": "package com.daimajia.androidanimations.library.specials.out;\n\nimport android.animation.ObjectAnimator;\nimport android.vi"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInAnimator.java",
"chars": 1708,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInDownAnimator.java",
"chars": 1821,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInLeftAnimator.java",
"chars": 1820,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInRightAnimator.java",
"chars": 1848,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/zooming_entrances/ZoomInUpAnimator.java",
"chars": 1960,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutAnimator.java",
"chars": 1715,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutDownAnimator.java",
"chars": 1962,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutLeftAnimator.java",
"chars": 1820,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutRightAnimator.java",
"chars": 1963,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/java/com/daimajia/androidanimations/library/zooming_exits/ZoomOutUpAnimator.java",
"chars": 1819,
"preview": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 daimajia\n *\n * Permission is hereby granted, free of charge, to any"
},
{
"path": "library/src/main/res/values/strings.xml",
"chars": 202,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <!-- hack to prevent missing R.txt, it's pretty wired.-->\n <s"
},
{
"path": "settings.gradle",
"chars": 27,
"preview": "include ':library', 'demo'\n"
}
]
// ... and 1 more files (download for full content)
About this extraction
This page contains the full source code of the daimajia/AndroidViewAnimations GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 99 files (161.4 KB), approximately 40.4k tokens, and a symbol index with 198 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.