Skip to content

Instantly share code, notes, and snippets.

View martarodriguezm's full-sized avatar

Marta Rodriguez martarodriguezm

View GitHub Profile
public class MyApp extends Application {
@Override
public void onCreate() {
TypefaceUtil.overrideFont(getApplicationContext(), "SERIF", "fonts/Roboto-Regular.ttf"); // font from assets: "assets/fonts/Roboto-Regular.ttf
}
}
@martarodriguezm
martarodriguezm / BorderedCircleTransformation.java
Last active September 17, 2018 11:17 — forked from berkkaraoglu/BorderedCircleTransform.java
BorderedCircleTransform for Picasso modified to pass borderColor and BorderRadius as input parameters
package marta.rodriguez.transformations;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.support.v4.graphics.ColorUtils;
import com.squareup.picasso.Transformation;