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
// THIS IS A BETA! I DON'T RECOMMEND USING IT IN PRODUCTION CODE JUST YET | |
/* | |
* Copyright 2012 Roman Nurik | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
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.graphics.Color; | |
import android.os.Bundle; | |
import android.support.v4.widget.SwipeRefreshLayout; | |
import android.support.v7.widget.DefaultItemAnimator; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import com.togethernetworks.basesdk.BaseActivity; | |
import com.togethernetworks.gallery.samples.mortar.UiModule; |
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.List; | |
public interface DiskCache<T> { | |
/** | |
* Sets the value to {@code value}. | |
*/ | |
public void set(String key, T value); | |
/** |
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.foreigngirlfriend.utils.recyclerview; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
public abstract class RecyclerViewAdapter<VH extends RecyclerView.ViewHolder> extends RecyclerView.Adapter<VH> { | |
private OnItemClickListener listener; | |
public boolean isEmpty() { | |
return getItemCount() == 0; |
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.aliens.utils; | |
import android.graphics.ColorFilter; | |
import android.graphics.LightingColorFilter; | |
import android.graphics.drawable.Drawable; | |
import android.graphics.drawable.StateListDrawable; | |
/** | |
* Created by vlad on 20.01.15. | |
*/ |
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
#kryo | |
-dontwarn sun.reflect.** | |
-dontwarn java.beans.** | |
-keep,allowshrinking class com.esotericsoftware.** { | |
<fields>; | |
<methods>; | |
} | |
-keep,allowshrinking class java.beans.** { *; } | |
-keep,allowshrinking class sun.reflect.** { *; } | |
-keep,allowshrinking class com.esotericsoftware.kryo.** { *; } |
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.support.v4.view.ViewPager; | |
/** | |
* Created by vlad on 7/20/13. | |
*/ | |
public class SimplePageChangedListener implements ViewPager.OnPageChangeListener { | |
private ViewPager.OnPageChangeListener listener; | |
private boolean pageChanged; |
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.corewillsoft.usetool.utils; | |
import android.app.Activity; | |
import android.content.SharedPreferences; | |
import android.content.res.Resources; | |
import android.os.Handler; | |
import com.corewillsoft.usetool.ui.fragments.LanguagesFragment; | |
import com.google.inject.Inject; |
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.corewillsoft.usetool.ui.fragments; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.content.res.Configuration; | |
import android.content.res.Resources; | |
import android.os.Bundle; | |
import android.preference.PreferenceFragment; | |
import android.text.TextUtils; | |
import android.view.LayoutInflater; |
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.animation.ArgbEvaluator; | |
import android.os.Handler; | |
import android.support.v4.view.ViewPager; | |
import static android.support.v4.view.ViewPager.SCROLL_STATE_IDLE; | |
import static com.corewillsoft.loansdeposits.ui.utils.SwipeDirectionDetector.Direction.LEFT; | |
import static com.corewillsoft.loansdeposits.ui.utils.SwipeDirectionDetector.Direction.RIGHT; | |
public abstract class ColorChangeEvaluatorListener implements ViewPager.OnPageChangeListener { |
OlderNewer