最近android更新了support library, 版本到了23.2, 从官方blog中我们还是可以看到几个令人心动的特性的,例如夜间模式的支持,BottomSheet.今天我们就来介绍一下这个Bottom Sheet,这可能会给我们开发中需要的一些效果带来便利.虽然这里我们准备用整整一篇博客的时间来介绍它,不过这东西使用起来太简单了也太方便了,这还要感谢Behavior机制的引入,我记得在博...
分类:
移动开发 时间:
2016-03-29 10:30:53
阅读次数:
1103
由于最近有需求,所以自定义了一个随意拖动元素的Behavior. 当然在使用这个自定义的Behavior时,有个小假设:拖动元素必须是Canvas容器的子元素。 实现原理比较简单低效: 监听被拖动元素的PointerMoved事件,当事件触发的时候,获取当前的指针信息,判断是否处于鼠标左键按下状态( ...
分类:
其他好文 时间:
2016-03-26 15:40:59
阅读次数:
120
<!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#
分类:
其他好文 时间:
2016-03-18 13:20:02
阅读次数:
206
一、 1. 2.The State Pattern allows an object to alter its behavior when its internal state changes. The object will appear to change its class. 3.The St
分类:
其他好文 时间:
2016-03-11 12:15:16
阅读次数:
247
看usermanual(使用随笔一里面有)看到差不多一半的时候,这个keep_behavior与unbeacome的结合引起了我的注意。(这是为什么呢?) 因为它的示例代码写的太简单了!我真的没看太懂,我就自己把他的改了改放上来。 先讲一下,基本概念,就是一个actor可以有多个行为(behavio
分类:
编程语言 时间:
2016-03-09 14:15:43
阅读次数:
525
Class-based actorsA class-based actor is a subtype of event_based_actor and must implement the pure virtual member function make_behavior returning th
分类:
编程语言 时间:
2016-03-09 10:53:42
阅读次数:
171
1)了解错误类型: Fault : A static defect in the software.【一个静态的在软件中产生的错误。】 Failure : External, incorrect behavior with respect to the requirements or other d
分类:
其他好文 时间:
2016-03-08 00:32:42
阅读次数:
155
查看ThinkPHP\Library\Behavior\ContentReplaceBehavior.class文件,常量定义如下定义: '__ROOT__' => __ROOT__, // 当前网站地址'__APP__' => __APP__, // 当前应用地址'__MODULE__' => _
分类:
Web程序 时间:
2016-03-02 00:05:48
阅读次数:
171
在Erlang 18中, 我们还是可以使用erlang:now/0 但也已经 deprecated啦,大量使用可能引发瓶颈。 The default time warp mode has the same behavior as before, and the old API still works
分类:
其他好文 时间:
2016-03-01 06:13:48
阅读次数:
176
1.Behavior 2.FloatingActionButton 3.CoordinatorLayout 4.Snackbar http://www.open-open.com/lib/view/open1437460246974.html
分类:
移动开发 时间:
2016-02-19 19:00:36
阅读次数:
138