This file contains hidden or 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
### ItemOffsetDecoration | |
```java | |
public class ItemOffsetDecoration extends RecyclerView.ItemDecoration { | |
private int mItemOffset; | |
public ItemOffsetDecoration(int itemOffset) { | |
mItemOffset = itemOffset; | |
} |
This file contains hidden or 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.eatfirst.android.ui.custom; | |
/** | |
* Copyright 2015 Bartosz Lipinski | |
* | |
* 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 hidden or 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
ConstraintSet constraintSet = new ConstraintSet(); | |
constraintSet.clone(getActivity(), R.layout.fragment_search_constraintset1); | |
ChangeBounds transition = new ChangeBounds(); | |
transition.setInterpolator(new AnticipateOvershootInterpolator(1.0f)); | |
transition.setDuration(800); | |
ConstraintLayout constraint = view.findViewById(R.id.constraint); | |
TransitionManager.beginDelayedTransition(constraint, transition); | |
constraintSet.applyTo(constraint); |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- google's material design colours from | |
http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
<!--reds--> | |
<color name="md_red_50">#FFEBEE</color> | |
<color name="md_red_100">#FFCDD2</color> | |
<color name="md_red_200">#EF9A9A</color> |