自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 RecyclerView 源码学习(二):一步一步自定义LayoutManager

前言这篇文章实现了一个简单的LayoutManager,重点在于从原理方面一步一步去了解如何自定义一个LayoutManager。麻雀虽小,但五脏俱全。从自定义LayoutManager的layout布局,到scroll滑动,再到添加简单的动画效果。 其实,自定义一个LayoutManager也没那么难。基本概念RecyclerLayoutManafger调用 getViewForPosition

2017-03-13 18:09:37 3336

原创 [LeetCode] Remove Boxes

题目 Given several boxes with different colors represented by different positive numbers. You may experience several rounds to remove boxes until there is no box left. Each time you can choose some

2017-03-28 17:06:43 2309

原创 [leetcode] 树状数组 BIT

Binary Index Tree关于BIT,可以参考一篇文章: http://blog.csdn.net/int64ago/article/details/7429868。个人的理解是,相当于在原数组建立了一个具备原数组某些区间和的新的数组。这个数组类似于一个数,最上面的节点又下面的节点构成。比如原数组中ak,对BIT中某些节点有影响。构建树的时候从底向上 k += k & -k 更新BIT节点,

2017-03-26 15:43:46 939

原创 [LeetCode] Create Maximum Number

Given two arrays of length m and n with digits 0-9 representing two numbers. Create the maximum number of length k <= m + n from digits of the two. The relative order of the digits from the same array

2017-03-15 10:13:02 628

原创 [LeetCode] Sliding Window Median

题目 Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value. Examples: [2,3,4] , the

2017-03-08 10:07:54 496

悬浮窗口及菜单demo

2017-01-21

基于socket的实时通讯,简单java后台

简单后台系统,用java,无框架,自己进行了简单的分包。

2015-12-11

空空如也

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

TA关注的人

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