Created
August 22, 2016 16:25
-
-
Save janishar/03ea9b09958b57686ee9433d161e89f6 to your computer and use it in GitHub Desktop.
This file contains 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
@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