摘要: 可以在代码中动态设置:private void initSystemBar() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { setTranslucentStatus(true); Syst... 阅读全文
posted @ 2015-07-14 15:24 developer_Kale 阅读(838) 评论(2) 推荐(0) 编辑
摘要: 其中: resource:是布局文件ID root:是父ViewGroup对象, attachToRoot:是是否将“翻译”出来的View添加到上面的root中 root和attachToRoot是共同作用的: 1,有root,同时attachToRoot为false,那么inflate()返回的就... 阅读全文
posted @ 2015-07-14 15:06 developer_Kale 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 我们要知道布局是否合理,可以通过Hierarchy Viewer这个工具。打开Hierarchy Viewer(定位到tools/目录下,直接执行hierarchyviewer的命令,选定需要查看的Process,再点击Load View Hierarchy会显示出当前界面的布局Tree。在每个模块... 阅读全文
posted @ 2015-07-14 10:09 developer_Kale 阅读(1407) 评论(0) 推荐(0) 编辑
网站流量统计工具