Created
August 23, 2016 07:01
-
-
Save janishar/dbdc3836937cdaa77df0459bd7274241 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.CARD_LEFT_IN_DESC) | |
| @NonReusable | |
| @Layout(R.layout.gallery_item) | |
| public class GalleryItem { | |
| @View(R.id.imageView) | |
| private ImageView imageView; | |
| private Drawable mDrawable; | |
| public GalleryItem(Drawable drawable) { | |
| mDrawable = drawable; | |
| } | |
| @Resolve | |
| private void onResolved() { | |
| imageView.setImageDrawable(mDrawable); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment