Skip to content

Commit

Permalink
AnimationUtils renamed to SimpleAnimationUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferfalk committed Oct 17, 2018
1 parent 6be08ce commit 58ffb92
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
import android.widget.FrameLayout;
import android.widget.ImageButton;

import com.ferfalk.simplesearchview.utils.AnimationUtils;
import com.ferfalk.simplesearchview.utils.ContextUtils;
import com.ferfalk.simplesearchview.utils.DimensUtils;
import com.ferfalk.simplesearchview.utils.EditTextReflectionUtils;
import com.ferfalk.simplesearchview.utils.SimpleAnimationListener;
import com.ferfalk.simplesearchview.utils.SimpleAnimationUtils;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
Expand Down Expand Up @@ -68,7 +68,7 @@ public class SimpleSearchView extends FrameLayout {
}

private Context context;
private int animationDuration = AnimationUtils.ANIMATION_DURATION_DEFAULT;
private int animationDuration = SimpleAnimationUtils.ANIMATION_DURATION_DEFAULT;
private Point revealAnimationCenter;
private CharSequence query;
private CharSequence oldQuery;
Expand Down Expand Up @@ -355,7 +355,7 @@ public void showSearch(boolean animate) {
searchEditText.requestFocus();

if (animate) {
AnimationUtils.AnimationListener animationListener = new SimpleAnimationListener() {
SimpleAnimationUtils.AnimationListener animationListener = new SimpleAnimationListener() {
@Override
public boolean onAnimationEnd(@NonNull View view) {
if (searchViewListener != null) {
Expand All @@ -364,7 +364,7 @@ public boolean onAnimationEnd(@NonNull View view) {
return false;
}
};
AnimationUtils.revealOrFadeIn(this, animationDuration, animationListener, getRevealAnimationCenter()).start();
SimpleAnimationUtils.revealOrFadeIn(this, animationDuration, animationListener, getRevealAnimationCenter()).start();
} else {
setVisibility(View.VISIBLE);
}
Expand Down Expand Up @@ -398,7 +398,7 @@ public void closeSearch(boolean animate) {
clearFocus();

if (animate) {
AnimationUtils.AnimationListener animationListener = new SimpleAnimationListener() {
SimpleAnimationUtils.AnimationListener animationListener = new SimpleAnimationListener() {
@Override
public boolean onAnimationEnd(@NonNull View view) {
if (searchViewListener != null) {
Expand All @@ -407,7 +407,7 @@ public boolean onAnimationEnd(@NonNull View view) {
return false;
}
};
AnimationUtils.hideOrFadeOut(this, animationDuration, animationListener, getRevealAnimationCenter()).start();
SimpleAnimationUtils.hideOrFadeOut(this, animationDuration, animationListener, getRevealAnimationCenter()).start();
} else {
setVisibility(View.INVISIBLE);
}
Expand Down Expand Up @@ -468,7 +468,7 @@ public void showTabLayout(boolean animate) {
}

if (animate) {
AnimationUtils.verticalSlideView(tabLayout, 0, tabLayoutInitialHeight, animationDuration).start();
SimpleAnimationUtils.verticalSlideView(tabLayout, 0, tabLayoutInitialHeight, animationDuration).start();
} else {
tabLayout.setVisibility(View.VISIBLE);
}
Expand All @@ -492,7 +492,7 @@ public void hideTabLayout(boolean animate) {
}

if (animate) {
AnimationUtils.verticalSlideView(tabLayout, tabLayout.getHeight(), 0, animationDuration).start();
SimpleAnimationUtils.verticalSlideView(tabLayout, tabLayout.getHeight(), 0, animationDuration).start();
} else {
tabLayout.setVisibility(View.GONE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @author Fernando A. H. Falkiewicz
*/
public abstract class SimpleAnimationListener implements AnimationUtils.AnimationListener {
public abstract class SimpleAnimationListener implements SimpleAnimationUtils.AnimationListener {
@Override
public boolean onAnimationStart(@NonNull View view) {
// No action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
/**
* @author Fernando A. H. Falkiewicz
*/
public class AnimationUtils {
public class SimpleAnimationUtils {
public static final int ANIMATION_DURATION_DEFAULT = 250;

private AnimationUtils() {
private SimpleAnimationUtils() {
}


Expand Down

0 comments on commit 58ffb92

Please sign in to comment.