start new:
tmux
start new with session name:
tmux new -s myname
| public class KeyboardObserver implements ViewTreeObserver.OnGlobalLayoutListener { | |
| private final static int MAGIC_NUMBER = 200; | |
| private SoftKeyboardToggleListener mCallback; | |
| private View mRootView; | |
| private float mScreenDensity = 1; | |
| private static HashMap<SoftKeyboardToggleListener, KeyboardObserver> sListenerMap = new HashMap<>(); | |
| public interface SoftKeyboardToggleListener { | |
| void onToggleSoftKeyboard(boolean isVisible); |
| # Ruby is our language as asciidoctor is a ruby gem. | |
| lang: ruby | |
| before_install: | |
| - sudo apt-get install pandoc | |
| - gem install asciidoctor | |
| script: | |
| - make | |
| after_success: | |
| - .travis/push.sh | |
| env: |
| ext { | |
| versions = [ | |
| support : "27.0.2", | |
| firebase : '11.8.0', | |
| okHttp : "3.9.1", | |
| retrofit : '2.3.0', | |
| dagger : '2.14.1', | |
| butterKnife : '8.8.1', | |
| rxJava : '2.1.5', | |
| rxJavaAndroid : '2.0.1', |
| $ git clone [email protected]:andhikayuana/realm-crud.git |
| # author Yuana | |
| # since june, 20 2018 | |
| image: azabost/android-sdk-27:latest | |
| before_script: | |
| - export GRADLE_USER_HOME=`pwd`/.gradle | |
| cache: | |
| paths: |
| /** | |
| * Typedef annotation listing all permissions | |
| * available in the latest SDK. | |
| * Using this on a method parameter | |
| * or on a method with {@link String} return value | |
| * will trigger value lookup in Android Studio. | |
| * | |
| * @version SDK23 | |
| * @author jmarkovic | |
| */ |
| /** | |
| * @author Yuana [email protected] | |
| * @since Jun, Sun 10 2018 13.44 | |
| **/ | |
| public abstract class BaseAdapter<T, V extends BaseViewHolder> extends RecyclerView.Adapter<V> { | |
| protected List<T> data = new ArrayList<T>(); | |
| protected Context context; | |
| protected OnItemClickListener itemClickListener; | |
| protected OnLongItemClickListener longItemClickListener; |