笔记

作者: 小强开学前 | 来源:发表于2019-10-31 09:58 被阅读0次

    1. android:foreground="?attr/selectableItemBackground" 添加水波纹效果

    2. view.requestDisallowedInterceptTouchEvent() 子View获取所有点击事件

    3. ::player.isInitialized,Koltin中判断是否已经初始化

    4. addHeader("Accept-Encoding","identity"),阿里云、腾讯云、七牛云等服务器txt文件没有`content-length`的解决方案,原因是服务器传输默认会压缩,第一次肯定没有长度,第二次可能有,加上请求头表示不要服务器压缩。感谢`shzwork`。

    5.`android:splitTrack="false"` 解决自定义Android丑陋的Seekbar时,thumb遮挡后面的进度条问题。

    6. `git pull --allow-unrelated-histories origin master` 远程与本地不一致,强行合并分支。

    7. `android:adjustViewBounds="true"` [参考](https://blog.csdn.net/pingchuanyang/article/details/9252689)

    8. `ViewConfiguration.get(requireActivity()).scaledTouchSlop` 获取系统所认为的最小滑动距离,点击事件判断

    9. `elevation` 属性可以添加阴影,某些设备上会导致重新绘制一遍View,提高一个过渡绘制等级,比如没加之前是绿色,加了直接变红。

    相关文章

      网友评论

          本文标题:笔记

          本文链接:https://www.haomeiwen.com/subject/lxkotqtx.html