Skip to content

Instantly share code, notes, and snippets.

@janishar
Created August 22, 2016 16:25
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 janishar/03ea9b09958b57686ee9433d161e89f6 to your computer and use it in GitHub Desktop.
Save janishar/03ea9b09958b57686ee9433d161e89f6 to your computer and use it in GitHub Desktop.
@Animate(Animation.ENTER_LEFT_DESC)
@NonReusable
@Layout(R.layout.gallery_item_big)
public class ImageTypeBig {
@View(R.id.imageView)
private ImageView imageView;
private String mUlr;
private Context mContext;
private PlaceHolderView mPlaceHolderView;
public ImageTypeBig(Context context, PlaceHolderView placeHolderView, String ulr) {
mContext = context;
mPlaceHolderView = placeHolderView;
mUlr = ulr;
}
@Resolve
private void onResolved() {
Glide.with(mContext).load(mUlr).into(imageView);
}
@LongClick(R.id.imageView)
private void onLongClick(){
mPlaceHolderView.removeView(this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment