Skip to content

Instantly share code, notes, and snippets.

View sohamtriveous's full-sized avatar

Soham Mondal sohamtriveous

View GitHub Profile
@sohamtriveous
sohamtriveous / build.gradle
Created September 20, 2014 20:43
Top level build.gradle file
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.2'
classpath 'com.jakewharton.hugo:hugo-plugin:1.1.0'
@sohamtriveous
sohamtriveous / ListImageView.java
Last active August 29, 2015 14:06
A simple ImageView that fades in/out when the image is changed, image loading powered by picasso
package com.triveous.recorder.ui.widget;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.ImageView;
import com.squareup.picasso.Picasso;
import com.squareup.picasso.Target;
// optional log to benchmark load times