-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added appeal and unnappear effect on the second layout
- Loading branch information
Showing
12 changed files
with
254 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.saulmm.material; | ||
|
||
import android.animation.Animator; | ||
|
||
public class AnimListener implements Animator.AnimatorListener { | ||
@Override | ||
public void onAnimationStart(Animator animator) { | ||
|
||
} | ||
|
||
@Override | ||
public void onAnimationEnd(Animator animator) { | ||
|
||
} | ||
|
||
@Override | ||
public void onAnimationCancel(Animator animator) { | ||
|
||
} | ||
|
||
@Override | ||
public void onAnimationRepeat(Animator animator) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
package com.saulmm.material; | ||
|
||
import android.transition.CircularPropagation; | ||
import android.graphics.Outline; | ||
import android.transition.Explode; | ||
import android.transition.Slide; | ||
import android.view.View; | ||
import android.view.Window; | ||
import android.view.animation.PathInterpolator; | ||
|
||
/** | ||
* Created by saulmm on 16/10/14. | ||
*/ | ||
public class Utils { | ||
|
||
public static void configureWindowEnterExitTransition (Window w) { | ||
|
||
Explode ex = new Explode(); | ||
ex.setInterpolator(new PathInterpolator(0.4f, 0, 1, 1)); | ||
w.setExitTransition(ex); | ||
w.setEnterTransition(ex); | ||
} | ||
|
||
CircularPropagation c = new CircularPropagation(); | ||
c.setPropagationSpeed(2f); | ||
public static void configureFab (View fabButton) { | ||
|
||
ex.setPropagation(c); | ||
int fabSize = fabButton.getContext().getResources() | ||
.getDimensionPixelSize(R.dimen.fab_size); | ||
|
||
w.setExitTransition(ex); | ||
w.setEnterTransition(ex); | ||
Outline fabOutLine = new Outline(); | ||
fabOutLine.setOval(0, 0, fabSize, fabSize); | ||
fabButton.setOutline(fabOutLine); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<LinearLayout 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" | ||
android:orientation="vertical" | ||
tools:context="emmaguy.l.timing.HierarchicalTimingActivity"> | ||
|
||
<LinearLayout | ||
android:id="@+id/row_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center" | ||
android:orientation="vertical"> | ||
|
||
<View | ||
android:layout_width="match_parent" | ||
android:layout_marginTop="5dp" | ||
android:layout_height="64dp" | ||
android:id="@+id/view_1" | ||
android:scaleX="0" | ||
android:scaleY="0" | ||
android:background="@color/accent"/> | ||
|
||
|
||
<View | ||
android:layout_width="match_parent" | ||
android:layout_marginTop="5dp" | ||
android:layout_height="64dp" | ||
android:id="@+id/view_2" | ||
android:scaleX="0" | ||
android:scaleY="0" | ||
android:background="@color/accent"/> | ||
|
||
|
||
<View | ||
android:layout_width="match_parent" | ||
android:layout_marginTop="5dp" | ||
android:layout_height="64dp" | ||
android:id="@+id/view_3" | ||
android:scaleX="0" | ||
android:scaleY="0" | ||
android:background="@color/accent"/> | ||
|
||
|
||
<View | ||
android:layout_width="match_parent" | ||
android:layout_marginTop="5dp" | ||
android:layout_height="64dp" | ||
android:id="@+id/view_4" | ||
android:scaleX="0" | ||
android:scaleY="0" | ||
android:background="@color/accent"/> | ||
|
||
|
||
<View | ||
android:layout_width="match_parent" | ||
android:layout_marginTop="5dp" | ||
android:layout_height="64dp" | ||
android:id="@+id/view_5" | ||
android:scaleX="0" | ||
android:scaleY="0" | ||
android:background="@color/accent"/> | ||
|
||
|
||
<View | ||
android:layout_width="match_parent" | ||
android:layout_marginTop="5dp" | ||
android:layout_height="64dp" | ||
android:id="@+id/view_6" | ||
android:scaleX="0" | ||
android:scaleY="0" | ||
android:background="@color/accent"/> | ||
|
||
<View | ||
android:layout_width="match_parent" | ||
android:layout_marginTop="5dp" | ||
android:layout_height="64dp" | ||
android:id="@+id/view_7" | ||
android:scaleX="0" | ||
android:scaleY="0" | ||
android:background="@color/accent"/> | ||
<View | ||
android:layout_width="match_parent" | ||
android:layout_marginTop="5dp" | ||
android:layout_height="64dp" | ||
android:id="@+id/view_8" | ||
android:scaleX="0" | ||
android:scaleY="0" | ||
android:background="@color/accent"/> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> |
Oops, something went wrong.