由于recyclerview默认是没有分割线的,需要显示分割线的话,可以在布局里添加一条有背景色的View标签,或者通过ItemDecoration来实现,本文以后者为例。 ItemDecoration里有2个重要的方法,onDraw和getItemOffsets。 布局文件activity_mai ...
分类:
其他好文 时间:
2017-07-18 01:49:36
阅读次数:
296
前些日子我打算开了博弈基础,事后想进行总结下 一句话就是分析必胜或必败,异或为0。 以下内容来自转载: Nim游戏的概述: 还记得这个游戏吗?给出n列珍珠,两人轮流取珍珠,每次在某一列中取至少1颗珍珠,但不能在两列中取。最后拿光珍珠的人输。后来,在一份资料上看到,这种游戏称为“拈(Nim)”。据说, ...
分类:
其他好文 时间:
2017-07-18 01:41:04
阅读次数:
215
FreeRTOS函数原型解析: portBASE_TYPE xTaskCreate( pdTASK_CODE pvTaskCode, const signed portCHAR * const pcName, unsigned portSHORT usStackDepth, void *pvPara ...
分类:
其他好文 时间:
2017-07-16 23:28:45
阅读次数:
244
继承使用关键字:extends PHP是单继承,有且只有一个父类 PHP的构造函数可以被继承,但是如果子类也定义了构造函数,则父类的被覆盖 子类中将父类的函数进行重新的定义,叫重写 parent 关键字,本意为父母,当前在子类中指代当前类的父类的对象,使用它可以调用被覆盖了的父类的属性和行为 ...
分类:
Web程序 时间:
2017-07-16 19:16:51
阅读次数:
153
描述As we known, data stored in the computers is in binary form. The problem we discuss now is about the positive integers and its binary form.Given a p ...
分类:
其他好文 时间:
2017-07-16 16:45:45
阅读次数:
235
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ? s. If there isn't ...
分类:
其他好文 时间:
2017-07-16 13:40:37
阅读次数:
165
平时在整理学习chrome插件的过程中,经常会去试用各种大家推荐的插件。在去年我们的一篇文章:推荐六款好用的书签收藏夹剪藏型管理插件。这里面介绍的是收藏书签的插件。而随着我们使用chrome越来越频繁,chrome中存在着大量的书签,而用户想要从书签中来获取有用的内容,就会变得越来越困难。所以一款具 ...
分类:
其他好文 时间:
2017-07-16 09:59:35
阅读次数:
204
Description Here is a simple game. In this game, there are several piles of matches and two players. The two player play in turn. In each turn, one ca ...
分类:
其他好文 时间:
2017-07-15 11:21:08
阅读次数:
246
原文发布时间为:2011-07-20 —— 来源于本人的百度文章 [由搬家工具导入] Model Metadata and Validation Localization using Conventions http://haacked.com/archive/2011/07/14/model-me ...
分类:
Web程序 时间:
2017-07-15 10:03:36
阅读次数:
257