Skip to content

Instantly share code, notes, and snippets.


codezjx codezjx

View GitHub Profile
codezjx /
Last active Jan 17, 2018
A picasso circle image transformation. Optimized version of: Use shader.setLocalMatrix() method to draw circle bitmap not from source bitmap left-top. So, we no need to create square bitmap!
* 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 / FragmentTabHost
Created May 7, 2015
A modify version of offical FragmentTabHost. Replace to,,, and so on. So you can use, 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
You can’t perform that action at this time.