Java Code Examples for android.view.animation.AnimationUtils#makeOutAnimation()

The following examples show how to use android.view.animation.AnimationUtils#makeOutAnimation() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PincodeScreen.java    From adamant-android with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void startProcess() {
    progressView.setVisibility(View.VISIBLE);
    Animation outAnimation = AnimationUtils.makeOutAnimation(this, false);
    keypadLayoutView.setAnimation(outAnimation);
    keypadLayoutView.setVisibility(View.GONE);
    cancelButtonView.setVisibility(View.GONE);
}
 
Example 2
Source File: ExampleSocialActivity.java    From android-profile with Apache License 2.0 5 votes vote down vote up
private void showView(final View view, boolean show) {
    final Animation animation = show ?
            AnimationUtils.makeInAnimation(view.getContext(), true) :
            AnimationUtils.makeOutAnimation(view.getContext(), true);
    animation.setFillAfter(true);
    animation.setDuration(500);
    view.startAnimation(animation);
}
 
Example 3
Source File: FadeAnimation.java    From minx with MIT License 4 votes vote down vote up
public void fadeOutRight(View view) {
    Animation fadeOutAnim = AnimationUtils.makeOutAnimation(context, true);
    view.startAnimation(fadeOutAnim);
    view.setVisibility(View.INVISIBLE);
    Log.d("fadeOut", "true");
}