- 博客(18)
- 收藏
- 关注
转载 RecyclerView及SwipeRefreshLayout的使用
Adapterpublic class SampleAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { private static final int TYPE_ITEM = 0; private static final int TYPE_FOOTER = 1; private final Lis
2016-06-19 12:19:48 262
转载 Git本地仓库作服务器
巧用网盘托管私人Git项目有一些私有的项目,不能放在Github之类的托管网站上,但自己又没有服务器,有些工作既要在公司的电脑上做,回家又可能需要加加紧。怎么办?把网盘(同步盘)当成Git项目的托管服务器,就可以解决这个问题,又能用Git有效地进行项目版本控制。1、当然是选择一个网盘(同步网盘),选择很多,看自己喜好。2、设定好网盘在本地同步的目录,如e:/wangpan3、新建一个文件夹,如tes
2016-06-08 23:17:04 643
原创 【笔记】android 多线程同步实现方法
ReentrantLock CountDownLatchCyclicBarrierConditionVariableConditionjoin()
2016-04-21 19:56:18 320
原创 【经验】Android Gradle配置问题
翻墙后搞了一天Gradle,到处找资料,结果都不行,记录一点经验,以备之后再次出错有时,配置Gradle出现如下错误Gradle DSL method not found:'android()'偶然间stackoverflow上找到个可用的方法,先看看下面我的build.gradle// Top-level build file where you can add co
2016-04-03 21:18:33 2355
转载 【收集】Android开源库
日历类TimesSquare 图标类IconicDroid 图片框square-progressbar 图片集FancyCoverFlow 跑马灯MarqueeView !这里写图片描述表格TableFixHeaders 进度条SmoothProgressBar 渐隐渐显TextViewSecretTextView 显示进度的按钮circular-progress-button 暂
2016-02-15 11:01:52 271
转载 Android自带模拟器的安装
在这里记载下Android模拟器的安装,由于觉得自己电脑还比较不错,能跑得起自带的模拟器,这里就介绍下Android自带的模拟器安装。网上的Genymotion之前旧电脑上也装过,等以后要装的时候再写一篇记录下方法。想运行AVD,之前发现报错,网上找了找原因,记录在此备忘。下面是安装过程:下载Intel x86 Emulator Accelerator (HAXM) 通过Android SDK M
2016-01-23 19:02:17 6384
转载 android常用工具
http://blog.csdn.net/zhaokaiqiang1992/article/details/44724057http://blog.csdn.net/zhaokaiqiang1992/article/details/44724687http://www.androidchina.net/3963.html
2015-12-10 21:01:13 274
转载 【Android】将图片转换为圆角
摘自:https://github.com/NashLegend/SourceWall.gitimport android.graphics.Bitmap;import android.graphics.Canvas;import android.graphics.Paint;import android.graphics.Paint.Style;import android.
2015-12-09 21:08:35 376
转载 【Java|Android】字符串工具类
摘自:https://github.com/cundong/ZhihuPaperimport java.io.IOException;import java.io.InputStream;import java.net.URLEncoder;import java.util.ArrayList;import java.util.HashMap;import java.util
2015-12-07 23:01:57 601
转载 【Android】SD卡工具类
摘自:https://github.com/cundong/ZhihuPaperimport java.io.File;import android.content.Context;import android.os.Environment;/** * 类说明: SD卡工具类 * * @date 2012-2-7 * @version 1.0 */publi
2015-12-07 22:48:36 356
转载 【Java|Android】时间日期工具
摘自:https://github.com/cundong/ZhihuPaperimport java.sql.Timestamp;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;import ja
2015-12-07 22:45:43 513
转载 【Android】ImageView按下后的滤镜效果示例
摘自:https://github.com/daimajia/AnimeTasteimport android.content.Context;import android.graphics.PorterDuff;import android.util.AttributeSet;import android.widget.ImageView;public class
2015-12-06 18:29:03 323
转载 【Android】网络状态获取工具
摘自:https://github.com/daimajia/AnimeTasteimport android.content.Context;import android.net.ConnectivityManager;import android.net.NetworkInfo;public class NetworkUtils { public static bool
2015-12-06 18:22:10 264
转载 【Android】MD5加密工具
摘自:https://github.com/daimajia/AnimeTasteimport java.security.MessageDigest;public class MD5 { static final String HEXES = "0123456789abcdef"; private static String getHex(byte[] raw) {
2015-12-06 18:13:55 320
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人