Skip to content

Instantly share code, notes, and snippets.

@miquelbeltran
Last active July 12, 2017 02:50
Show Gist options
  • Save miquelbeltran/65c8f5327d71e6f1074180e0c18c7f53 to your computer and use it in GitHub Desktop.
Save miquelbeltran/65c8f5327d71e6f1074180e0c18c7f53 to your computer and use it in GitHub Desktop.
@Implements(CollapsingToolbarLayout.class)
public class ShadowCollapsingToolbarLayout extends ShadowFrameLayout {
public void __constructor__(Context context, AttributeSet attrs, int defStyleAttr) {
}
@Implementation
public void onAttachedToWindow() {
}
}
@miquelbeltran
Copy link
Author

The empty onAttachedToWindow is required so the OffsetUpdateListener is not created.

@kaershushu
Copy link

How can you init it in test class ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment