自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(169)
  • 资源 (5)
  • 收藏
  • 关注

原创 59. Android 静态分析插件

59. Android 静态分析插件 Android 大杂烩静态代码质量检查 gradle plugin . (。>﹏<。) Githubandroid-static-analysis-pluginGradleproject build.gradledependencies { com.camnter....

2018-04-21 15:51:23 9389

原创 58. SaveVolley

SaveVolleySave volley from anything, By Agera to save. Thus, derived the AgeraVolley . (。>﹏<。)

2017-01-10 15:12:25 5276

原创 59. Instant Run 笔记

16年10月 的一份阅读笔记,是关于 Instant Run 的笔记。是一个非常有意思的东西。

2017-01-10 15:07:22 5187

原创 57.EasyRecyclerViewSidebar

EasyRecyclerViewSidebarEasy sidebar for Android RecyclerView (。>﹏<。) IntroductionEasyRecyclerViewSidebar 是更加便利的侧栏索引 . 不仅仅可以加载字母,还能加载图片你也可以自定义悬浮ViewGithubhttps://github.com/CaMnter/EasyRecycle

2016-04-19 16:31:10 6769 2

原创 56.EasyLikeArea

EasyLikeAreaEasy like area in the circle of friends or QQ qzone IntroductionEasyViewProxy是EasyLikeArea的缓存管理器,默认的缓存数量是17。 建议: 使用Glide给ImageView加载好图片,然后放入EasyLikeArea中。Gradledependencies {

2016-04-19 16:14:14 6053 2

原创 55.EasyCountDownTextureView

EasyCountDownTextureView仿手淘倒计时,性能稍微高一点的EasyCountDownTextureView。 Easy count down by TextureViewGithubGithubAttentionminSdkVersion >= 14Gradledependencies { compile 'com.camnter.easycount

2016-03-18 17:23:05 5973

原创 54.EasyArcLoading

EasyArcLoadingEasyArcLoadingEasyArcLoadingGradleScreenshotAttributesGithubEasyArcLoadingAn interesting effect gifGradlecom.camnter.easyarcloading:easyarcloading:1.0Screenshot Attributes<declare

2016-03-08 13:05:27 5014

原创 50.EasyGank妹纸App

50.EasyGank妹纸App前言基于MVP模式下 , RxJava+RxAndroid+Retrofit的组合 .RxJavaRxAndroidRetrofitOkhttpGsonGlideReservoirGithubEasyGankScreenShots

2016-01-16 19:39:56 4869

原创 34.Android MVC框架 - Robotlegs4Androird

34.Android MVC框架 - Robotlegs4AndroirdAndroid MVC框架 - Robotlegs4AndroirdAndroid 耦合的MVCRobotlegs4Android MVCRobotlegs4Android GradleRobotlegs4Android GithubRobotlegs4Android ModelRobotlegs4Android

2015-11-11 22:54:46 4530 5

原创 28.Android 十分方便的EasyRecyclerView

28.Android 十分方便的EasyRecyclerView Android 十分方便的EasyRecyclerView 前言无限被放大的优点GradleRecyclerViewAdapterEasyRecyclerViewEasyRecyclerViewActivityRecyclerView设置布局管理器RecyclerView设置Item动画RecyclerView需要自

2015-10-23 00:23:40 18551 16

原创 22.Android 十分方便的滑动标签页EasySlidingTabs

22.Android 十分方便的滑动标签页EasySlidingTabsAndroid 十分方便的滑动标签页EasySlidingTabs前言GradleEasySlidingTabs属性EasySlidingTabs布局FragmentPagerAdapterEasySlidingTabs设置Tab背景Github传送门效果图前言其实滑动标签页是很常见的,网上搜也是一大堆。但是好用

2015-10-18 17:30:38 7182 5

原创 ES6 实用点记录

原文地址 let 高频场景 没有 变量提升 暂时性死区 不能重复声明 解构解析 普通解析 对象解析 String 扩展 模板编译 Number 扩展 Number.isNaN Number.isSafeInteger Array 扩展 Array.of Array.includes Function 扩展 参数 默认

2017-05-02 14:27:40 1066

原创 53.Android Canvas Paint

Android Canvas PaintAndroid Canvas PaintCanvasPaintCanvas裁剪画布:Region.Op.INTERSECT 取两者交集,默认的方式Region.Op.DIFFERENCE 第一次上减去与第而次的交集Region.Op.REPLACE 显示第二次的Region.Op.REVERSE_DIFFERENCE 第二次上减去与第一次的交集

2016-03-01 16:38:17 1023

原创 52.otto 源码解析

otto 源码解析Otto的源码非常简单,一共就九个类。项目结构AnnotatedHandlerFinder ( 查找并缓存所有注解方法 )Bus ( otto核心业务类,包括注册、反注册、发送事件等等 )DeadEvent ( 内置事件,没有订阅者,不能被传递 )EventHandler ( 封装@Subscribe方法及其所在类 )EventProducer ( 封装@Produce方

2016-02-06 13:36:52 1662

原创 51.Rxjava+RxAndroid+Retrofit组合问题

51.Rxjava+RxAndroid+Retrofit组合问题1.Caused by: java.lang.IllegalArgumentException: Unable to create call adapter for rx.Observablefix : compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2'this.retr

2016-01-18 22:38:39 5506 3

原创 49.Android中各种Span的用法

49.Android 各种SpanAndroid 各种Span前言SpannableStringBuilderURLSpanUnderlineSpanTypefaceSpanTextAppearanceSpanTabStopSpanStandardSuperscriptSpanSubscriptSpanStrikethroughSpanScaleXSpanStyleSpan

2015-12-29 17:15:58 34589 11

原创 48.Android 标签TextView的点击技巧

48.Android 标签TextView的点击技巧Android 标签TextView的点击技巧前言ClickableSpan源码自定义ClickableSpanTagTextViewTagTextViewActivity效果图github前言在一些圈子性质的页面里,每条动态的文本往往都是富文本。其中就有一种掺杂了标签的富文本内容。如新浪微博的标签富文本。…… …… 而且,最重要

2015-12-23 13:45:34 3672 4

原创 47.Android 自定义PopupWindow技巧

47.Android 自定义PopupWindow技巧Android 自定义PopupWindow技巧前言PopupWindow的宽高PopupWindow定位在下左位置PopupWindow定位在下中位置PopupWindow定位在下右位置PopupWindow动画自定义PopupWindow效果图前言其实PopupWindow自定义过程是很简单的,唯一头疼的是:PopupWind

2015-12-22 16:28:28 5514 2

原创 46.Android 自定义Dialog

46.Android 自定义DialogAndroid 自定义Dialog前言提示Dialog提示Dialog 效果图菜单Dialog菜单Dialog 效果图DialogActivity前言提供两套自定义Dialog模板第一种,提示Dialog,有消失时间。第二种,菜单Dialog,用于用户交互。提示DialogCustomDialogpublic class CustomDial

2015-12-13 16:20:00 2893

原创 45.Android ViewUtil

45.Android ViewUtilpublic class ViewUtil { /** * Set view alpha * 设置透明度 * * @param view view * @param alpha alpha value */ public static void setAlpha(View view, i

2015-12-12 18:20:14 2740

原创 44.Android MD5Util

44.Android MD5Utilpublic class MD5Util { public static String getMD5String(String key) { char hexDigits[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',

2015-12-08 23:15:42 3618

原创 43.Android Base64Util

43.Android Base64Utilpublic class Base64Util { /** * bitmap转成base64 * * @param bitmap bitmap * @return base64 */ public String bitmapToBase64(Bitmap bitmap) { //

2015-12-06 18:12:56 3915

原创 42.Android LocationManager

42.Android LocationManagerAndroid LocationManagerLocationManager 介绍LocationManager 获取LocationListener 初始化LocationManager 添加监听LocationManager 取得所有ProviderLocationManager 匹配合适ProviderLocationManag

2015-11-29 16:37:00 3185

原创 41.Android aapt工具

41.Android aapt工具Android aapt工具aapt 介绍aapt 环境配置aapt listaapt dumpaapt package其他命令aapt 介绍可参考官方文档: http://www.androidcn.net/wiki/index.php/Reference/aapt aapt stands for Android Asset Packaging

2015-11-28 15:52:33 9471 3

原创 40.Android 资源Id工具类ResourcesUtil

40.Android 资源Id工具类ResourcesUtilAndroid 资源Id工具类ResourcesUtilResourcesUtilResourcesUtilActivityResourcesUtilpublic class ResourcesUtil { /** * 根据mipmap文件的名字取得id * * @param context

2015-11-26 15:42:39 4568

原创 39.Android BroadcastReceiver

39.Android BroadcastReceiverAndroid BroadcastReceiverAndroid BroadcastReceiver 介绍Android BroadcastReceiver 功能Android BroadcastReceiver 浅淡机制静态BroadcastReceiver 实现动态BroadcastReceiver 实现BroadcastRec

2015-11-23 15:13:54 3873

原创 38. Android 反射资源工具ReflectionUtil

38. Android 反射资源工具ReflectionUtilAndroid 反射资源工具ReflectionUtil工具代码工具使用工具代码ReflectionUtilpublic class ReflectionUtil { public enum ResourcesType { styleable, style, string,

2015-11-21 11:21:15 4717 3

原创 37.Android Service 及 AIDL

37.Android Service 及 AIDLAndroid Service 及 AIDLAndroid Service介绍Android Service类型Android Service bind 和 startLocal Service 实现Remote Service 实现Android Service介绍├── Context│ ├── ContextWrapper (S

2015-11-18 17:56:22 3926 2

原创 36.Android 自定义ContentProvider

36.Android 自定义ContentProviderAndroid 自定义ContentProviderContentProvider 介绍ContentProvider 优点Android 自带的ContentProviderContentProvider Uri 结构Google Uri 工具类UriMatcher 解析自定义 ContentProviderContentP

2015-11-15 15:49:17 4762

原创 35.Android .gitignore 模板

35.Android .gitignore 模板# Built application files*.apk*.ap_# Files for the Dalvik VM*.dex# Java class files*.class# Generated filesbin/gen/# Gradle files.gradle/gradle/build//*/build/# Local

2015-11-12 21:40:16 3780

原创 33.Android 自动适配字体大小的AutoAdjustSizeEditText

33.Android 自动适配字体大小的AutoAdjustSizeEditTextAndroid 自动适配字体大小的AutoAdjustSizeEditTextAutoAdjustSizeEditText介绍AutoAdjustSizeEditText原理AutoAdjustSizeEditTextAutoAdjustSizeEditTextActivityAutoAdjustSizeE

2015-11-05 18:18:29 6605

原创 32.Android SQLite 及其更新

32.Android SQLite 及其更新 32Android SQLite 及其更新Android SQLite 介绍Android SQLite 继承SQLiteOpenHelperAndroid SQLite 创建表Android SQLite 增Android SQLite 删Android SQLite 改Android SQLite 查Android SQLite 删除

2015-11-04 18:09:55 7306

原创 31.Android MVP模式

31.Android MVP模式Android MVP模式Android MVP介绍Android MVP UML图Android MVP实现Android MVP项目结构Android MVP作用代码下载Android MVP介绍先说说MVC吧,MVC(Model-View-Controller)是Java中一种非常常用的开发模式。但是在Android中,View的话可以很容易想到Ac

2015-11-03 18:19:45 4538

原创 30.Android v4 LruCache

30.Android v4 LruCacheAndroid v4 LruCacheLruCache介绍LruCache源码LruCache核心源码解析LruCache缓存小架构模板CacheManger APILruCache介绍在android.support.v4.util包中,存在这样一个LruCache的缓存辅助类。Lru是Least Recently Used 近期最少使用算法

2015-10-31 16:33:37 4375

原创 29.Android 传感器

29.Android 传感器Android 传感器Android 传感器介绍Android SensorManagerSensor的类型Sensor APISensor 监听SensorEvent中values的x y z含义加速度传感器G-sensor磁力传感器M-sensor方向传感器O-sensor陀螺仪传感器Gyro-sensor光线感应传感器压力传感器温度传感器

2015-10-29 23:14:18 5304 4

原创 5.Android support design TabLayout

5.Android support design TabLayoutAndroid support design TabLayoutTabLayout介绍gradle配置TabLayout属性TabLayout布局

2015-10-25 16:39:33 5506

原创 5.希尔排序

5.希尔排序希尔排序前言实现思路模拟走位实现代码运行前言希尔排序也称为缩小增量排序,是插入排序算法的一种改进版。希尔排序应该是最难的排序了希尔排序的诞生是由于插入排序在处理大规模数组的时候会遇到需要移动太多元素的问题。实现思路希尔排序的思想是将一个大的数组“分而治之”,将一个大的数组划分为若干个小的数组。以 gap (间隔)来划分,比如数组 [ 1 , 2 , 3 , 4 , 5 , 6

2015-10-23 23:29:07 4217

原创 4.插入排序

4.插入排序插入排序前言实现思路模拟走位模拟走位Main前言插入排序的效果就像将一个数组模拟成两个数组的在选择、插入的过程。实现思路假设在下标 i 之前的是数都已经排好了顺序( 0 … i-1 ),那么此次需要找到 i 位置的数的正确位置 k 。在寻找这个位置 k 的过程中,逐个比较 i 之前排好顺序的数组,先比较最大的 i-1 位置的数(因为有序,所以 i 以前的数, i-1 是最大的

2015-10-23 22:16:46 4139

原创 3.选择排序

3.选择排序选择排序前言实现思路模拟走位实现代码运行前言选择排序的含义就是因为每一次最内层for走一趟都会选择出一个最大或最小的数。实现思路比如有N个数,开始先选取第一个数( i= 0 )作为基准数。然后抛开这个数以以前的数,右边的数( i+1 To n-1 )走一趟for,找出最小(最大也行,看你是要升序还是降序),然后拿到这个最小的数,和基准数交换。然后下一次又重新定位基准数 i +

2015-10-23 22:16:21 4166

原创 2.快速排序

2.快速排序快速排序前言实现思路实现代码Main前言快速排序可以说是所有排序算法里最常用、最优秀、最效率的算法。它是冒泡排序的改进版。就像它的名字一样,“快速”!实现思路实现思路是非常有趣的: - 1.先一个基准数(一般选择第一个数。即,index = 0)。 - 2.来个while,从数组最右边开始找比基准数小的数,记录下标为 r。 - 3.在再来个while,从数组最左边开始找比

2015-10-23 22:14:50 4078

Mvp4Android Demo

这是一个Mvp架构模式的Android Demo

2015-11-03

Android 下载图片保存到相册

DownLoadImageToGallery: Android 下载图片保存到相册

2015-10-20

DownLoadImageToGallery

DownLoadImageToGallery。Android下载图片到相册。

2015-10-20

SwiftCoreDataDemo

Swift Language: CoreData Demo

2015-10-20

验证码JavaScript

随机生成验证码,做了网线布置,防止了恶意AI软件的扫描。一个很简单的JavaScript验证码代码。

2014-08-13

空空如也

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

TA关注的人

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