Skip to content

Instantly share code, notes, and snippets.

😱
Overtime

codezjx codezjx

View GitHub Profile
@codezjx
codezjx / CircleImageTransformation.java
Last active Jan 17, 2018
A picasso circle image transformation. Optimized version of: https://gist.github.com/julianshen/5829333. Use shader.setLocalMatrix() method to draw circle bitmap not from source bitmap left-top. So, we no need to create square bitmap!
View CircleImageTransformation.java
/**
* Created by codezjx on 2016/5/4.
*/
public class CircleImageTransformation implements Transformation {
/**
* A unique key for the transformation, used for caching purposes.
*/
private static final String KEY = "circleImageTransformation";
@codezjx
codezjx / FragmentTabHost
Created May 7, 2015
A modify version of offical FragmentTabHost. Replace android.support.v4.app.Fragment to android.app.Fragment,,, and so on. So you can use android.app.Fragment, FragmentManager, FragmentTransaction directly!
View FragmentTabHost
package com.example.bill.myapplication;
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
You can’t perform that action at this time.