摘要: Android官方推荐 无需向应用授予的照片选择器工具 阅读全文
posted @ 2023-09-12 11:25 勤奋的小铁 阅读(1077) 评论(0) 推荐(0) 编辑
摘要: Screen fragments should never be restored. Follow instructions from https://github.com/software-mansion/react-native-screens/issues/17#issuecomment-424704067 to properly configure your main activity. 阅读全文
posted @ 2023-09-12 10:58 勤奋的小铁 阅读(55) 评论(0) 推荐(0) 编辑
摘要: <style name="DialogTheme" parent="@style/Theme.AppCompat.Dialog"> <item name="windowNoTitle">true</item> <item name="android:windowIsFloating">true</i 阅读全文
posted @ 2023-08-18 11:28 勤奋的小铁 阅读(5) 评论(0) 推荐(0) 编辑
摘要: chunked:将ByteArray分割为指定大小的子数组(List<ByteArray>) val list = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) val chunkedList = list.chunked(3) println(chunkedList) 阅读全文
posted @ 2023-07-18 14:15 勤奋的小铁 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 其实Glide加载还是可以将小图片加载的非常清晰的, 可以通过Glide转换为Bitmap 利用Drawable将setFilterBitmap为true 但是这玩意解决不了GIF。在没有找到库的情况下:我直接自定义view通过 pl.droidsonroids.gif:android-gif-dr 阅读全文
posted @ 2023-07-13 14:41 勤奋的小铁 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Android 返回UI线程几种方法 阅读全文
posted @ 2023-07-10 10:49 勤奋的小铁 阅读(70) 评论(0) 推荐(0) 编辑
摘要: Android Gradle 构建脚本中配置之aapt 阅读全文
posted @ 2023-07-06 11:52 勤奋的小铁 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 只需要自定义控件监听 dispatchSetPressed 方法就可以轻松实现 比如: class ImageViewButton(context: Context, attrs: AttributeSet?, defStyleAttr: Int): androidx.appcompat.widge 阅读全文
posted @ 2023-06-19 14:26 勤奋的小铁 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 使用 setProperty 来设置 archivesBaseName 属性,archivesBaseName 是一个用于构建生成的输出文件名的属性,通常用于在构建输出中包含特定的标识符或信息。每次构建时,通过调用 releaseTime() 方法获取当前日期和时间,并将其与固定文本和应用程序版本信 阅读全文
posted @ 2023-06-14 10:29 勤奋的小铁 阅读(169) 评论(0) 推荐(0) 编辑
摘要: react native 使用 redux、react-redux、redux-thunk、@reduxjs/toolkit 无脑版 ERROR Error: could not find react-redux context value; please ensure the component is wrapped in a 阅读全文
posted @ 2023-05-29 15:26 勤奋的小铁 阅读(92) 评论(0) 推荐(0) 编辑