Skip to content

Instantly share code, notes, and snippets.

View codezjx's full-sized avatar
😱
Overtime

zhangjixiong codezjx

😱
Overtime
View GitHub Profile
@codezjx
codezjx / FragmentTabHost
Created May 7, 2015 16:16
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!
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
*
@codezjx
codezjx / CircleImageTransformation.java
Last active July 28, 2023 12:15
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!
/**
* 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";