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
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
| import android.content.Context; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import java.util.List; | |
| #parse("File Header.java") |
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
| fun ImageView.load(url: String) { | |
| Picasso.with(context).load(url).into(this) | |
| } | |
| fun snack(view: View, message: String, duration: Int = Snackbar.LENGTH_LONG) { | |
| Snackbar.make(view, message, duration).show() | |
| } | |
| imgView.load(url) |
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
| import android.content.Context; | |
| import android.widget.ImageView; | |
| import com.squareup.picasso.Picasso; | |
| import com.squareup.picasso.Transformation; | |
| /** | |
| * Created by Diego on 21/01/2016. | |
| */ | |
| public class PicassoImp implements PicassoWrapper { |
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
| import android.widget.ImageView; | |
| import com.squareup.picasso.Transformation; | |
| /** | |
| * Created by Diego on 21/01/2016. | |
| */ | |
| public interface PicassoWrapper { | |
| void loadfromUrl(String url, ImageView imageView); |