I hereby claim:
- I am andremion on github.
- I am andremion (https://keybase.io/andremion) on keybase.
- I have a public key ASA_YvZFMLvI_8FhDr13_nBSqkX2WZBWg1beEjMxGckmQwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/** | |
* {@link CollapsingToolbarLayout} subclass that adjust its collapsed height according to tabs. | |
*/ | |
public class TabbedCollapsingToolbarLayout extends CollapsingToolbarLayout { | |
private Toolbar toolbar; | |
private TabLayout tabLayout; | |
private int toolbarBottomMargin; | |
public TabbedCollapsingToolbarLayout(Context context) { |
http://www.martinfowler.com/bliki/TestDouble.html
##TestDouble
17 January 2006
Gerard Meszaros is working on a book to capture patterns for using the various Xunit frameworks. One of the awkward things he's run into is the various names for stubs, mocks, fakes, dummies, and other things that people use to stub out parts of a system for testing. To deal with this he's come up with his own vocabulary which I think is worth spreading further.
public class AutofitGridRecyclerView extends RecyclerView { | |
private final int mColumnWidth; | |
private final GridLayoutManager mLayoutManager; | |
public AutofitRecyclerGridView(Context context) { | |
this(context, null, 0); | |
} | |
public AutofitRecyclerGridView(Context context, @Nullable AttributeSet attrs) { |
public class CharacterImageView extends ImageView { | |
private final Path mPath = new Path(); | |
public CharacterImageView(Context context) { | |
this(context, null, 0); | |
} | |
public CharacterImageView(Context context, AttributeSet attrs) { | |
this(context, attrs, 0); |
public class GridSpacingDecoration extends RecyclerView.ItemDecoration { | |
private final int mSpacing; | |
public GridSpacingDecoration(int spacing) { | |
mSpacing = spacing; | |
} | |
@Override | |
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { |