Skip to content

Instantly share code, notes, and snippets.

@cesco89
cesco89 / ObservableFragment.java
Last active May 6, 2018 04:34
Listen to FragmentTransaction animation events
import android.animation.Animator;
import android.animation.AnimatorInflater;
import android.app.Fragment;
/**
* Created by francesco on 14/10/14.
*/
public class ObservableFragment extends Fragment {
private TransitionListener mListener;
@cbeyls
cbeyls / ContentLoadingProgressBar.java
Last active December 20, 2021 22:16
ContentLoadingProgressBar implemented The Right Way™
package be.digitalia.common.widgets;
import android.content.Context;
import android.os.SystemClock;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ProgressBar;
/**
* ContentLoadingProgressBar implements a ProgressBar that waits a minimum time to be