Skip to content

Instantly share code, notes, and snippets.

Avatar

Dennis Muasya Dmuasya

View GitHub Profile
View MainActivity.java
package com.dennis.notification.effects;
import android.app.Activity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import com.dennis.notification.effects.lib.Configuration;
import com.dennis.notification.effects.lib.Effects;
import com.dennis.notification.effects.lib.NiftyNotificationView;
View Standard.java
package com.dennis.notification.effects.lib.effects;
import android.view.View;
import com.nineoldandroids.animation.ObjectAnimator;
public class Standard extends BaseEffect{
@Override
protected void setInAnimation(View view) {
getAnimatorSet().playTogether(
View SlideOnTop.java
package com.dennis.notification.effects.lib.effects;
import android.view.View;
import com.nineoldandroids.animation.ObjectAnimator;
public class SlideOnTop extends BaseEffect{
@Override
protected void setInAnimation(View view) {
View Flip.java
package com.dennis.notification.effects.lib.effects;
import android.view.View;
import com.nineoldandroids.animation.ObjectAnimator;
import com.nineoldandroids.view.ViewHelper;
public class Flip extends BaseEffect {
long s = mDuration,
e =mDuration;
View SlideIn.java
package com.dennis.notification.effects.lib.effects;
import android.view.View;
import com.nineoldandroids.animation.ObjectAnimator;
public class SlideIn extends BaseEffect {
@Override
protected void setInAnimation(View view) {
View gist:bccbe4fe8929e57f258aa18f21a99fa3
package com.dennis.notification.effects.lib.effects;
import android.view.View;
import com.nineoldandroids.animation.ObjectAnimator;
public class Jelly extends BaseEffect {
@Override
protected void setInAnimation(View view) {
View ThumbSlider.java
package com.dennis.notification.effects.lib.effects;
import android.view.View;
import com.nineoldandroids.animation.ObjectAnimator;
import com.nineoldandroids.view.ViewHelper;
public class ThumbSlider extends BaseEffect{
long s = (mDuration-200)/2,
View Scale.java
package com.dennis.notification.effects.lib.effects;
import android.view.View;
import com.nineoldandroids.animation.ObjectAnimator;
public class Scale extends BaseEffect {
@Override
protected void setInAnimation(View view) {
View activity_main.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:background="#2683e0"
android:orientation="vertical"
tools:context=".MainActivity">
<TextView
android:id="@+id/title"
View build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.1'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
}
You can’t perform that action at this time.