Skip to content

Instantly share code, notes, and snippets.

@russelarms
Created May 28, 2017 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save russelarms/0e6d7b1ca50ae0521285f72f43c95792 to your computer and use it in GitHub Desktop.
Save russelarms/0e6d7b1ca50ae0521285f72f43c95792 to your computer and use it in GitHub Desktop.
public class AnimatorScene extends RelativeLayout {
private Point screenDimensions;
@BindView(R.id.ocean)
View ocean;
@BindView(R.id.fish_left)
View fishLeft;
@BindView(R.id.fish_left_bottom)
View fishLeftBottom;
@BindView(R.id.fish_right)
View fishRight;
@BindView(R.id.submarine)
View submarine;
public AnimatorScene(Context context) {
super(context);
init();
}
public AnimatorScene(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
private void init() {
inflate(getContext(), R.layout.scene_layout, this);
ButterKnife.bind(this);
screenDimensions = ScreenUtils.getScreenDimensions(getContext());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment