08 2020 档案

摘要:项目中有一个需求是让Checkbox居中显示,但是给checkBox直接设置 android:gravity="center" 属性无效,效果如下图: 可以看到,Checkbox中的图片仍然没有居中,后来找到了一种解决办法可以通过自定义CheckBox解决: package com.yongdaim 阅读全文
posted @ 2020-08-28 09:42 夜行过客 阅读(4328) 评论(0) 推荐(0) 编辑
摘要:requestLayout() View.requestLayout(); 调用该方法,控件会重新执行 onMeasure() , onLayout() 和 onDraw() 这三个方法。 layout() View.layout(int l, int t, int r, int b) 调用该方法会 阅读全文
posted @ 2020-08-26 17:06 夜行过客 阅读(645) 评论(0) 推荐(0) 编辑
摘要:一. 背景知识 2013年谷歌i/o大会上介绍了两个新的layout: SlidingPaneLayout和DrawerLayout,现在这俩个类被广泛的运用,其实研究他们的源码你会发现这两个类都运用了ViewDragHelper来处理拖动。ViewDragHelper是framework中不为人知 阅读全文
posted @ 2020-08-25 15:29 夜行过客 阅读(1595) 评论(0) 推荐(0) 编辑
摘要:今天在往Gerrit提交code时遇到了一个异常诡异的问题: ! [remote rejected] HEAD -> refs/for/master (no new changes) 开始我以为是本地的新commit已经提交到Gerrit上了,后来到Gerrit上一看没有,网上有好多的说法都是说:本 阅读全文
posted @ 2020-08-12 09:52 夜行过客 阅读(7885) 评论(0) 推荐(0) 编辑
摘要:公司不让用VMware, 只好用VirtualBox, 安装好增强工具后,设置VirtualBox共享文件夹如下: 不过在linux(Ubuntu 16.04, Win10)中打开却提示:This location could not be displayed. You dont have the 阅读全文
posted @ 2020-08-03 10:22 夜行过客 阅读(12593) 评论(0) 推荐(2) 编辑

点击右上角即可分享
微信分享提示