随笔分类 - android
Android 开发用到的知识点
摘要:Android官方推荐 无需向应用授予的照片选择器工具
阅读全文
摘要: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.
阅读全文
摘要:<style name="DialogTheme" parent="@style/Theme.AppCompat.Dialog"> <item name="windowNoTitle">true</item> <item name="android:windowIsFloating">true</i
阅读全文
摘要:Android Gradle 构建脚本中配置之aapt
阅读全文
摘要:只需要自定义控件监听 dispatchSetPressed 方法就可以轻松实现 比如: class ImageViewButton(context: Context, attrs: AttributeSet?, defStyleAttr: Int): androidx.appcompat.widge
阅读全文
摘要:使用 setProperty 来设置 archivesBaseName 属性,archivesBaseName 是一个用于构建生成的输出文件名的属性,通常用于在构建输出中包含特定的标识符或信息。每次构建时,通过调用 releaseTime() 方法获取当前日期和时间,并将其与固定文本和应用程序版本信
阅读全文
摘要:FileUtils object FileUtils { private const val SIZE_TYPE_B = 1 //获取文件大小单位为B的double值 private const val SIZE_TYPE_KB = 2 //获取文件大小单位为KB的double值 private c
阅读全文
摘要:fun rotateColors(colors: Array<IntArray>, degrees: Float): Array<IntArray> { val newColors = Array(10) { IntArray(19) { Color.BLACK } } val centerX =
阅读全文
摘要:1、使用 OkHttp3 库来将远程的 GIF 文件转换成 InputStream OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("http://xxxxx/resourc
阅读全文
摘要:android Dialog 取消阴影
阅读全文
摘要:public class ItemDragCallback extends ItemTouchHelper.Callback { private BleListAdapter mAdapter; private boolean mEdit; public ItemDragCallback(BleLi
阅读全文
摘要:android:clickable="true"android:focusable="true"
阅读全文
摘要:public class SoundManager { private static SoundManager instance; private SoundPool mSoundPool; private float cur_engine_volume = 0.7f; private int mS
阅读全文