Skip to content

Instantly share code, notes, and snippets.

Avatar

Ekalips Ekalips

View GitHub Profile
View IDependencyProviderModule.java
package com.ekalips.p2pchat.di.modules;
public interface IDependencyProviderModule<T> {
Class<T> getProvidedClass();
T provideDependency();
/**
* Specifies is provided dependency should be re-created each time or cached can be used
View BillingProvider.java
package com.noctua.billing;
import android.app.Activity;
import android.support.annotation.Nullable;
import com.android.billingclient.api.Purchase;
import java.util.List;
/**
@Ekalips
Ekalips / Main.java
Created Sep 18, 2017
Animations and stuff
View Main.java
package com.ekalips;
/**
* Created by Ekalips on 9/18/2017.
*/
public class Main {
public static void main(String[] args) {
Point a = new Point(0, 0);
Point b = new Point(0, 100);
@Ekalips
Ekalips / ViewAnimationUtils.java
Created Sep 6, 2017
Handy util class that will animate view vertical collapse/expand
View ViewAnimationUtils.java
package com.wldev.expandablecardviewlist.extra;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.Transformation;
public class ViewAnimationUtils {
public static void expand(final View v, final AnimationEndCallback callback, boolean fast) {
View TestAdapterGenerated
public abstract class TestAdapterGenerated extends Adapter<BindingViewHolder> implements DataSetInterface {
List<TestData> data;
{
data = new java.util.ArrayList<>();
}
@Override
@CallSuper
public int getItemViewType(int position) {
You can’t perform that action at this time.