Skip to content

Instantly share code, notes, and snippets.

View abhimuktheeswarar's full-sized avatar

Abhi Muktheeswarar abhimuktheeswarar

View GitHub Profile
@abhimuktheeswarar
abhimuktheeswarar / UserLogin.java
Created September 29, 2016 10:05
Usecase for dynamic queries
/**
* Interactor to login the user using username and password
*/
public class UserLogin extends UseCase {
private final UserRepository userRepository;
private String password;
private String username;
public UserLogin(ThreadExecutor threadExecutor,
@abhimuktheeswarar
abhimuktheeswarar / LockableViewPager.java
Last active September 29, 2016 10:05
Viewpager to use with bottom bar navigation
public class LockableViewPager extends ViewPager {
private boolean swipeLocked;
public LockableViewPager(Context context) {
super(context);
}
public LockableViewPager(Context context, AttributeSet attrs) {
super(context, attrs);
/*
* Copyright (C) 2014 skyfish.jy@gmail.com
*
* 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
*
* Unless required by applicable law or agreed to in writing, software