This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gturedi.gist; | |
import android.view.animation.Animation; | |
public abstract class CustomAnimationListener | |
implements Animation.AnimationListener { | |
@Override | |
public void onAnimationStart(Animation animation) { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gturedi.gist; | |
import android.app.Activity; | |
import android.support.annotation.StringRes; | |
import android.support.v7.app.AlertDialog; | |
import android.view.Gravity; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.LinearLayout; | |
import android.widget.ProgressBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// click and scrol listener supported webview | |
package gturedi.gist; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.MotionEvent; | |
import android.webkit.WebView; | |
public class ObservableWebView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gturedi.sample; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
public class PeriodicTask { | |
private static final int ONE_DAY_IN_MILLIS = 1000 * 60 * 60 * 24; | |
public static void run(final Context context, Runnable runnable) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.Serializable; | |
public interface ReadCallback<T extends Serializable> { | |
void done(Exception e, T result); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.util.Log; | |
import android.view.GestureDetector; | |
import android.view.MotionEvent; | |
import android.view.View; | |
public class TouchUtil { | |
public static void addDoubleTapListenerToView(final View target, final Runnable action){ | |
final GestureDetector gestureDetector = new GestureDetector(target.getContext(), new GestureDetector.SimpleOnGestureListener() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.hide_day_picker; | |
import android.app.Activity; | |
import android.app.DatePickerDialog; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.DatePicker; | |
import java.lang.reflect.Field; |