【笔记记录】2020-04-10

【安卓】

1.ByteBuffer:HeapByteBuffer、MappedByteBuffer -> DirectByteBuffer,capacity概念,limit概念,position概念,mark概念

2.使用SnapHelper将RecycleView模拟成ViewPager效果:LinearSnapHelper、PagerSnapHelper

3.Java的元注解:@Retention、@Documented、@Target、@Inherited、@Repeatable

4.LinkedHashMap:双向链表,head、tail、accessorder

5.Android Ashmem:MemoryFile, fd文件描述符

6.Fragment转场动画方式:setCustomAnimations()、setTransition() & onCreateAnimation()

7.Service的两种注册方式:startService()、bindService(),区别就是生命周期联动、是否可以通信(IBinder、Binder)

8.DataSource<Key, Value>:继承子类,实现它的加载数据方法,调用callback.onResult()参数。

【英语】

1.entitled:有资格的

2.punishment:The student was given punishment for doing something wrong.

3.minibus:He was taken by the minibus to military base.

【其他】

1.SVN查看状态:svn status [-v],X 和 ? 表示文件还没有加入版本控制,!表示已丢失(需要使用svn命令删除它)

2.PHP中的__tostring()魔术方法:echo 和 print 时调用,字符串拼接对象也会调用他的__tostring()方法

3.PHP的单点入口:所有的功能通过index.php来转发,经典的就是通过get参数区分。

4.前端居中方式:对一个块元素设置margin:0 auto就能实现水平居中,然后还可以设置margin-top设置上下边距。

猜你喜欢

转载自www.cnblogs.com/nicojerry/p/12597881.html