3.GRASP原则三: 低耦合 Low Coupling How to support low dependency, low change impact and increased reuse? 如何保证设计方案支持低的依赖性.低的变化影响度.增加可重用性?3.2 耦合的定义Coupling 耦合: 一个元素与其它元素的联接.感知以及依赖程度的度量 Measure of how strongly one element is: connected to. has knowledge
GRASP原则五:高内聚 High Cohesion How to keep objects focused, understandable and manageable, and as a side effect support Low Coupling? 如何使对象功能专注.可理解.可管理,同时又支持 低耦合?5.1 GRASP rule 5:High Cohesion Name:High Cohesion 高内聚 Problem: How to keep objects f
沉浸式状态栏确切的说应该叫做透明状态栏.一般情况下,状态栏的底色都为黑色,而沉浸式状态栏则是把状态栏设置为透明或者半透明. 沉浸式状态栏是从android Kitkat(Android 4.4)开始出现的,它可以被设置成与APP顶部相同的颜色,这就使得切换APP时,整个界面就好似切换到了与APP相同的风格样式一样.在内容展示上会显得更加美观. 功能:本博客主要说的是,效果如图: 测试时,低版本高版本都是可行的. 代码: 父类Activity /** * Created by zq on 16/1