自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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常用工具类

转载自:这里在AOSP源码全局搜了一下包含Util关键字的类

2016-03-22 11:04:08 316

转载 【收集】Android开源库

日历类TimesSquare 图标类IconicDroid 图片框square-progressbar 图片集FancyCoverFlow 跑马灯MarqueeView !这里写图片描述表格TableFixHeaders 进度条SmoothProgressBar 渐隐渐显TextViewSecretTextView 显示进度的按钮circular-progress-button 暂

2016-02-15 11:01:52 271

转载 RxJava中的常用操作符

https://www.zhihu.com/question/32209660

2016-02-13 13:46:09 677

转载 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

转载 【Android】屏幕像素、密度工具类

Android工具:用于获取屏幕宽、高,以及dp与px间的互换

2015-12-06 18:03:03 418

转载 【Android】ListView高度调整工具

根据传入的ListView子布局,设置ListView的高度尺寸

2015-12-05 22:55:49 255

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除