摘要: git学习地址: http://backlogtool.com/git-guide/cn/intro/intro1_1.html http://sfsheng0322.github.io/2016/02/29/git-branch.html 代码回滚参考地址 http://www.cnblogs.c 阅读全文
posted @ 2016-03-28 18:22 吴添龙 阅读(389) 评论(0) 推荐(0) 编辑
摘要: implementation 'android.arch.lifecycle:extensions:1.1.1' implementation 'android.arch.lifecycle:runtime:1.1.1' 阅读全文
posted @ 2022-02-16 19:56 吴添龙 阅读(94) 评论(0) 推荐(0) 编辑
摘要: int sw = DisplayUtils.getScreenWidth(mContext);int h = DisplayUtils.dipToPx(mContext, 40); if (animator == null) { animator = android.animation.ValueA 阅读全文
posted @ 2018-11-01 11:51 吴添龙 阅读(197) 评论(0) 推荐(0) 编辑
摘要: public class ContentViewPager extends ViewPager { public ContentViewPager(Context context) { super(context); } public ContentViewPager(Context context 阅读全文
posted @ 2018-07-11 10:48 吴添龙 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 我门通常用的是十进制,也就是逢十进1,也就是可以用 0,1,2,3,4,5,6,7,8,9表示个位,当到十的时候就进了一位,变成了两位10 同理,八进制是逢八进1,也就是可以用 0,1,2,3,4,5,6,7表示个位,当到八的时候变成了两位10,我们在八进制数10前面加上0,八进制数10就变成了01 阅读全文
posted @ 2018-06-06 17:05 吴添龙 阅读(414) 评论(0) 推荐(0) 编辑
摘要: java -jar AutoLayoutPlus.jar width height (注意,输入的时候width在前,height在后;生成的文件夹命名是height在前,width在后) jar包地址: https://github.com/yujiesuperman/autolayoutplus 阅读全文
posted @ 2017-12-25 18:35 吴添龙 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 开发者只需在App的AndroidManifest.xml文件<application> </application>中添加如下代码: <meta-data android:name="android.max_aspect" android:value="2.1" /> Android 标准接口中, 阅读全文
posted @ 2017-11-30 10:39 吴添龙 阅读(2570) 评论(0) 推荐(0) 编辑
摘要: getResources().getDisplayMetrics().densityDpi 就是屏幕密度。getResources().getDisplayMetrics().density 也可以理解为1dip相当于多少个px啦。 dp是虚拟像素,在不同的像素密度的设备上会自动适配,比如: dpi 阅读全文
posted @ 2017-10-17 16:54 吴添龙 阅读(5462) 评论(0) 推荐(0) 编辑
摘要: 一、资源前缀 (项目中res文件夹下的所有资源都要添加前缀,包括anim、animator、layout、drawable文件夹中的xml文件名,drawable-xhdpi等文件夹下的图片资源名,values文件夹下各文件中的资源名,raw文件夹下的文件资源名。其中attrs文件和styles文件 阅读全文
posted @ 2017-10-07 12:10 吴添龙 阅读(2114) 评论(0) 推荐(0) 编辑
摘要: long lastClickTime ;private boolean isFastDoubleClick() { long time = System.currentTimeMillis(); if (time - lastClickTime < 1000) { return true; } la 阅读全文
posted @ 2017-09-15 10:57 吴添龙 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 如果含有空格 会报 不合法参数异常 正确做法是将其encode 阅读全文
posted @ 2017-09-11 17:09 吴添龙 阅读(869) 评论(0) 推荐(0) 编辑