AppLink https://juejin.cn/post/7031143982960902157 https://developer.android.com/studio/write/app-link-indexing 唤醒App的几种方式Deep Linkhttps://developer.android.com/training/app-links/deep-linking URL Scheme 链接格式 2022-10-17 ANDROID
LC-Tree-Search-22 二叉树搜索 BST根节点比左子树所有节点的数值都大,比右子树所有节点的数值都小. 700. 二叉搜索树中的搜索My idea DFS 先序遍历搜索,如果找到了直接返回当前节点。 123456789101112131415fun searchBST(root: TreeNode?, `val`: Int): TreeNode? { if (root == null) return 2022-10-05 DataStructure #LEETCODE
Fragment_StateLoss 问题 ,Activity恢复后 mStateSaved,是怎么恢复的? 就是onSavedInstanceState 的官方API文档2 这里问题的场景是Activity已经关闭了,rpc请求很久再回来,导致了这个问题,所以我觉得判断livedate激活状态就可以了 可是这个改动应该只能在resume吧? LiveData started 和 resumed 都可以 Livedata 会感知act 2022-09-15 ANDROID #Fragment
LC_TREE08 101. 对称二叉树层序遍历层序遍历是没法实现的 123456789101112131415161718192021 fun isSymmetric3(root: TreeNode?): Boolean { val queue = LinkedList<TreeNode>() if (root != null) { 2022-09-11 DataStructure #LEETCODE
view_custom_attr 自定义属性类别 boolean 表示attr取值为true或者falsecolor 表示attr取值是颜色类型,例如#ff3344,或者是一个指向color的资源id,例如R.color.colorAccent.dimension 表示 attr 取值是尺寸类型,例如例如取值16sp、16dp,也可以是一个指向dimen的资源id,例 如R.dimen.d 2022-08-27 VIEW
view_round_image https://blog.csdn.net/xiaohanluo/article/details/52945791 https://guides.codepath.com/android/Working-with-the-ImageView https://guides.codepath.com/android/Working-with-the-ImageView 全圆角OutLine12345 2022-08-14 VIEW
Gradle 可以研究下 Project Api DEBUG1./gradlew "-Dorg.gradle.daemon=false" "-Dorg.gradle.debug=true" :tasks 9:37 Gradle Lifecyclehttps://docs.gradle.org/current/userguide/build_lifecycle.ht 2022-07-26
leetcode 20. 有效的括号123456789101112131415161718192021222324252627//官方 HashMap 解法更好 更清晰public boolean isValid(String s) { Stack stack = new Stack(); for (int i = 0; i < s.length(); i++) { 2022-07-26
kotlin-inline inline4:00分钟 12345fun main() { hello { println("Bye") }} 不加inline1234fun hello(postAction: () -> Unit) { println("Hello!") postA 2022-07-24 Kotlin
LC-Tree 二叉树算法思维 https://www.bilibili.com/video/BV1nG411x77H TreeOperation.java打印树 Tree https://www.bilibili.com/video/BV1JW411i731 完全二叉树数组存储方式 i 是数组下标 遍历 每个Node都有3次访问机会,谁先出现就代表什么序. 中间节点 在哪,代表的遍历方式 先序遍历 p 2022-07-17 DataStructure #LEETCODE