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 abstract class SimpleCollapsingToolbarCallback implements AppBarLayout.OnOffsetChangedListener { | |
public enum State { | |
EXPANDED, | |
COLLAPSED | |
} |
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 class SpacingItemDecoration extends RecyclerView.ItemDecoration { | |
private static final String TAG = "SPACE"; | |
private int spacing; | |
public SpacingItemDecoration(int spacing) { | |
this.spacing = spacing; | |
} |
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
# rm all files | |
git rm -r --cached . | |
# add all files as per new .gitignore | |
git add . | |
# now, commit for new .gitignore to apply | |
git commit -m ".gitignore is now working" | |
Delete uncommited items in branch | |
git reset --hard |
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
abstract class BaseBottomSheetDialogFragment : BottomSheetDialogFragment() { | |
@LayoutRes | |
protected abstract fun layoutRes(): Int | |
protected abstract fun onViewCreated() | |
private var sheetBehavior: BottomSheetBehavior<*>? = null | |
private var peekHeight = 0 | |
private var expandedOffset = 0 |
OlderNewer