Skip to content

Instantly share code, notes, and snippets.

@hegazy
hegazy / RippleButton.java
Last active August 29, 2015 14:05 — forked from nhaarman/semi-ripple.java
Riiple Effect in Button onClickListener
package com.nhaarman.test;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RadialGradient;
import android.graphics.Region;
@hegazy
hegazy / ProgressDialogFragment.java
Last active November 3, 2022 19:12 — forked from dhawalhshah/ProgressDialogFragment.java
DialogFragment to show progress
import android.app.Dialog;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
public class ProgressDialogFragment extends DialogFragment {
private static final String ARG_MESSAGE = "message";
private static final String ARG_INDETERMINATE = "indeterminate";