Skip to content

Instantly share code, notes, and snippets.

{"sig":"dd4197deaa0858bc35c947bf51425fc9239811adabce81f71e91603be94a55fad2fa4bc978f9ac595acb6108024b575694a35665024006e74d1b3e4034d722c71","msghash":"f08d512e7e29dba0c27f6ec5d48daf70158012c62faee574f398987cf6972dce"}
@zeng1990java
zeng1990java / GridRecyclerView
Last active September 16, 2015 00:44 — forked from Musenkishi/GridRecyclerView
GridRecyclerView. A Grid-specific RecyclerView that can use gridLayoutAnimation.
/*
* Copyright (C) 2014 Freddie (Musenkishi) Lust-Hed
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
@zeng1990java
zeng1990java / IconColorChanger.java
Created June 14, 2015 15:16
改变图标的颜色
/**
* Created by chandru on 31-03-2015.
*/
public class IconColorChanger {
public static Bitmap changeImageColor(Bitmap sourceBitmap, int color) {
Bitmap resultBitmap = Bitmap.createBitmap(sourceBitmap, 0, 0, sourceBitmap.getWidth() - 1, sourceBitmap.getHeight() - 1);
Paint p = new Paint();
ColorFilter filter = new LightingColorFilter(color, 1);
@zeng1990java
zeng1990java / AndroidManifest.xml
Last active August 29, 2015 14:23
动态替换launcher icon
<activity
android:name=".ui.WelcomeActivity"
android:label="@string/app_name"
android:windowSoftInputMode="adjustResize|stateHidden" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity-alias