- 博客(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
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人