// Path: vangogh/src/main/java/com/pspdfkit/labs/vangogh/api/FadeAnimations.java
// public static AnimationCompletable fadeIn(@NonNull View view) {
//     return fadeToAlpha(view, ALPHA_VISIBLE);
// }
// 
// Path: vangogh/src/main/java/com/pspdfkit/labs/vangogh/api/FadeAnimations.java
// public static AnimationCompletable fadeOut(@NonNull View view) {
//     return fadeToAlpha(view, ALPHA_INVISIBLE);
// }


import com.google.android.material.floatingactionbutton.FloatingActionButton;
import static com.pspdfkit.labs.vangogh.api.FadeAnimations.fadeIn;
import static com.pspdfkit.labs.vangogh.api.FadeAnimations.fadeOut;
package com.example.vangogh.samples;



public class SingleFadeAnimationActivity extends SingleAnimationActivity {

    @Override
    protected void onFabClicked(final FloatingActionButton fab) {
        fadeOut(fab)
                .doOnAnimationStart(view -> fab.setEnabled(false))
                .doOnAnimationEnd(view -> fab.setEnabled(true))
// Path: vangogh/src/main/java/com/pspdfkit/labs/vangogh/api/FadeAnimations.java
// public static AnimationCompletable fadeIn(@NonNull View view) {
//     return fadeToAlpha(view, ALPHA_VISIBLE);
// }
// 
// Path: vangogh/src/main/java/com/pspdfkit/labs/vangogh/api/FadeAnimations.java
// public static AnimationCompletable fadeOut(@NonNull View view) {
//     return fadeToAlpha(view, ALPHA_INVISIBLE);
// }


// Path: vangogh-sample/src/main/java/com/example/vangogh/samples/SingleFadeAnimationActivity.java
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import static com.pspdfkit.labs.vangogh.api.FadeAnimations.fadeIn;
import static com.pspdfkit.labs.vangogh.api.FadeAnimations.fadeOut;

package com.example.vangogh.samples;



public class SingleFadeAnimationActivity extends SingleAnimationActivity {

    @Override
    protected void onFabClicked(final FloatingActionButton fab) {
        fadeOut(fab)
                .doOnAnimationStart(view -> fab.setEnabled(false))
                .doOnAnimationEnd(view -> fab.setEnabled(true))
                .andThen(fadeIn(fab))