Skip to content

Instantly share code, notes, and snippets.

@GraysonGao
GraysonGao / cloudSettings
Last active May 28, 2020 02:47
vscode_settings
{"lastUpload":"2020-05-28T02:47:20.786Z","extensionVersion":"v3.4.3"}
@GraysonGao
GraysonGao / NinePatchBitmapFactory.java
Created January 9, 2018 08:05
NinePatchDrawbleFactory
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.drawable.NinePatchDrawable;
import android.util.DisplayMetrics;
import java.io.BufferedInputStream;
import java.io.File;
@GraysonGao
GraysonGao / emoji&unicode
Created October 31, 2017 02:28
about emoji, unicode
Date: 2015-12-17
Title: Emoji表情传输和保存:对非BMP范围的Unicode字符的处理
Category: PHP
Tags: Emoji, Unicode, PHP, Lua
Slug: php_emoji_to_unicode
参考:
[UTF-16](https://en.wikipedia.org/wiki/UTF-16)
public void loadImage(final MainChatImgModel models, final ImageView imageView, final ProgressBarCircularIndeterminate progressBar, final RelativeLayout loadingPanel){
progressBar.setVisibility(View.VISIBLE);
loadingPanel.setVisibility(View.VISIBLE);
glide.load(models.getData().get(0).getSrc()).diskCacheStrategy(DiskCacheStrategy.ALL).listener(new RequestListener<String, GlideDrawable>() {
@Override
public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) {
return false;
}
@Override