android触摸事件和点击事件
简书链接:android触摸事件和点击事件文章字数:101,阅读全文大约需要1分钟优先级->dispatchTouchEvent>setOnTouchListener>onTouch() >onCLick 123456789101112131415161718192021222324252627282930313233343536373839public boolean dispatchTouchEvent(MotionEvent event) { // If the event should be handled by accessibility focus first. if (event.isTargetAccessibilityFocus()) { // We don't have focus or no virtual descendant has it, do not handle the event. if...
Paint画笔Shader之LinearGradient的用法
简书链接:Paint画笔Shader之LinearGradient的用法文章字数:1326,阅读全文大约需要5分钟 参数讲解1234567891011121314/** Create a shader that draws a linear gradient along a line. 创建一个shader绘制一条线 @param x0 The x-coordinate for the start of the gradient line 开始坐标x @param y0 The y-coordinate for the start of the gradient line 开始坐标y @param x1 The x-coordinate for the end of the gradient line 结束坐标 x @param y1 The y-coordinate for the end of the gradient line 结束坐标y ...
谈谈android44multidexnoclassdeffounderror的问题(不是网上那种设置就可以解决的)
简书链接:谈谈android44multidexnoclassdeffounderror的问题(不是网上那种设置就可以解决的)文章字数:429,阅读全文大约需要1分钟 按理说 1multiDexEnabled true 1compile 'com.android.support:multidex:1.0.1' 以及继承自定义application并复写自定义Application中的attachBaseContext是可以解决问题的 123456protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); } 然而并不行,有人说要clearn...
斐讯k2p梅林忘记密码恢复出厂之后的解决办法
简书链接:斐讯k2p梅林忘记密码恢复出厂之后的解决办法文章字数:554,阅读全文大约需要2分钟无意中忘记密码了,不得不恢复出厂设置,谁知道呢访问http://192.168.1.1 进入了 - CFE miniWeb Server ```界面123456那么 打开``` tftpd64.exe```那么地址已经确定了刷机tfp地址是```192.168.1.144```别问我怎么知道的,看图,另外右边的网卡名称是杀手,就是本地网卡的名称了. http://192.168.1.1/do.htm?cmd=flash+-noheader+192.168.1.144:K2P_Merlin_V10d.trx+flash0.trx 12输入它之后会弹出一个进度, 那么只需要等待。cmd打开 ping...
混淆问题之jar库包名和非jar库相同类名遇到混淆的问题
简书链接:混淆问题之jar库包名和非jar库相同类名遇到混淆的问题文章字数:157,阅读全文大约需要1分钟 12345Warning: there were 165 instances of library classes depending on program classes. You must avoid such dependencies, since the program classes will be processed, while the library classes will remain unchanged. (http://proguard.sourceforge.net/manual/troubleshooting.html#dependency) 意思是某个jar有1605个 引用用到了这个class, 你新建的这个也是这个依赖,你必须处理一下,因为这些库是保持不变的,但是你这个自己新建的是会被混淆掉的。你必须避免搜索程序的依赖关系,你需要处理一下, 我的处理方式是删除这个qq...
NoresourcefoundthatmatchesthegivennameatdialogCornerRadius
简书链接:NoresourcefoundthatmatchesthegivennameatdialogCornerRadius文章字数:326,阅读全文大约需要1分钟 123456Error:(5, 5) No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius')C:\speed\other\.gradle\caches\transforms-1\files-1.1\appcompat-v7-28.0.0-alpha1.aar\0532cec11b8a81a20fe8fb077f96364f\res\values-v28\values-v28.xmlError:(5, 5) No resource found that matches the given name (at 'dialogCornerRadius' with value...
163音乐点歌乱码分析以及解决办法
简书链接:163音乐点歌乱码分析以及解决办法文章字数:414,阅读全文大约需要1分钟习惯抓包然后把所有请求头弄上去,结果电脑上正常,手机模拟访问竟然是乱码的,我就郁闷了,竟然是http的常识坑死了我,还以为是163有什么高级手段呢。解决方法是删除Accept-Encoding的模拟,或者自己手动解码. 123456map.put("User-Agent", "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36.35068264 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36"); map.put("Cache-Control", "max-age=0"); map.put("Host", "s.music.163.com"); map.put("Connection",...
View绘制流程
简书链接:View绘制流程文章字数:419,阅读全文大约需要1分钟 1、MeasureMeasureSpec:在Measure流程中,系统将View的LayoutParams根据父容器所施加的规则转换成对应的MeasureSpec,在onMeasure中根据这个MeasureSpec来确定view的测量宽高 测量模式 EXACTLY :父容器已经测量出所需要的精确大小,这也是childview的最终大小 ——match_parent,精确值 ATMOST : child view最终的大小不能超过父容器的给的 ------wrap_content UNSPECIFIED: 不确定,源码内部使用 -------一般在ScrollView,ListView 2)、测量大小:根据测量模式来确定测量大小 3)源码里面的位运算 &:取出对应Mask类型的属性值 |:添加对应的属性值 &...
探索巩固与或非左移右移探索Android的MODEMASK设计以及用window计算器验证
简书链接:探索巩固与或非左移右移探索Android的MODEMASK设计以及用window计算器验证文章字数:1684,阅读全文大约需要6分钟10进制转2进制2048 1024 512 256 128 64 32 16 8 4 2 1与运算 表示2进制位上 表示都是1才是1,可以理解为必须是男同才是真爱,女同不算window计算器符号标记为AND 或运算 OR1234501(8) 0 1 0 // =2+8 =10 0 1 1 // = 10 和3 |运算=================== 1 0 1 1//与运算 结果 10|3结果为 3|8 =11 WINDOW计算器验证 3 OR 8 =11 与运算 AND1234501(8) 0 1 0 // =2+8 =10 0 1 1 // = 10 和3&运算=================== 0 0 1 0//与运算 结果 10&8 =0 WINDOW计算器验证 3 AND 10 =2 异或运算...
PowerDesigner第二篇玩转活动图
简书链接:PowerDesigner第二篇玩转活动图文章字数:273,阅读全文大约需要1分钟上一篇已经翻译了,Actiivty的意思就是活动 所以叫活动图 什么是活动图?活动图(activity diagram,动态图)是阐明了业务用例实现的工作流程。业务工作流程说明了业务为向所服务的业务主角提供其所需的价值而必须完成的工作。业务用例由一系列活动组成,它们共同为业务主角生成某些工件。工作流程通常包括一个基本工作流程和一个或多个备选工作流程。工作流程的结构使用活动图来进行说明。 如何编辑 什么结构hua 如何导出图片,全选绘制的内容,点击编辑-export image即可参考链接https://baike.baidu.com/item/%E6%B4%BB%E5%8A%A8%E5%9B%BE/9454978?fr=aladdin