android开发
swust_chenpeng
这个作者很懒,什么都没留下…
展开
-
Android Studio Mac版快捷键
⌥—> option|alt ⇧—>shift ⌃—>control ⌘—>command ⎋—>esc ↑↓←→Codealt+F7:Find usage alt+command+L:格式化代码 alt+command+L:优化import(去掉无用的import) command+O:Override Methods command+I:Implement Methods c原创 2015-06-27 20:22:29 · 48319 阅读 · 1 评论 -
android:fillViewport和android:clipToPadding的使用
关于android:fillViewport和android:clipToPadding的使用今天在做一个典型的CoordinatorLayout+AppBarLayout+CollapsingToolbarLayout页面时,发现底部的FloatingActionButton在小屏幕上,会遮挡部分scroll view中的内容,所以就想在scrollview上加paddingBottom能让内...原创 2019-02-27 15:14:24 · 594 阅读 · 0 评论 -
自定义View构造函数参数理解
自定义的属性使用1、通过<declare-styleable>为自定义View添加属性 2、在xml中为相应的属性值 3、在运行时(一般为构造函数)获取属性值 4、将获取到得属性值应用到View自定义Style<?xml version="1.0" encoding="utf-8"?><resources> <declare-原创 2015-09-19 18:11:36 · 4273 阅读 · 1 评论