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.content.Context; | |
import android.content.Intent; | |
import android.support.annotation.StringDef; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
public final class DemoModeHelper { | |
public static void enter(Context context) { | |
new Enter(context).send(); |
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
public static class ItemTypeAdapterFactory implements TypeAdapterFactory { | |
final static String KEY_TO_REMOVE = "status"; | |
@Override | |
public <T> TypeAdapter<T> create(Gson gson, final TypeToken<T> type) { | |
final TypeAdapter<T> delegate = gson.getDelegateAdapter(this, type); | |
final TypeAdapter<JsonElement> elementAdapter = gson.getAdapter(JsonElement.class); |
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.util.Collection; | |
/** | |
* @author Eric Cochran | |
*/ | |
public class ArrayListBest<T> { | |
private static final int DEFAULT_CAPACITY = 10; | |
private final int initialCapacity; | |
private T[] arr; |
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.annotation.TargetApi; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.PorterDuff; | |
import android.os.Build; | |
import android.util.AttributeSet; | |
import android.widget.ProgressBar; | |
public class TintedProgressBar extends ProgressBar { |
NewerOlder