Skip to content

Instantly share code, notes, and snippets.

View plusend's full-sized avatar
🇨🇳
长路漫漫,唯剑作伴

plusend plusend

🇨🇳
长路漫漫,唯剑作伴
View GitHub Profile
@plusend
plusend / HanziToPinyin.java
Created April 5, 2017 02:05 — forked from D-clock/HanziToPinyin.java
从Android4.2.2原生系统中提取出来的汉字转换成拼音的方案,同时兼容国产ROM
/*
* Copyright (C) 2009 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
*
* Unless required by applicable law or agreed to in writing, software
@plusend
plusend / EmptyRecyclerView.java
Created December 18, 2016 06:36 — forked from ibabde/EmptyRecyclerView.java
RecyclerView with provosion to add empty view like list view. Displayed when the data set is empty
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
public class EmptyRecyclerView extends RecyclerView {
@plusend
plusend / GlideImageGetter
Last active November 25, 2016 06:28 — forked from donglua/GlideImageGetter
GlideImageGetter uses Glide Image Library to load GIFs/JPG/PNG in HTML <img> tags into TextView
import android.content.Context;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.text.Html;
import android.view.View;
import android.widget.TextView;
import com.bumptech.glide.Glide;