摘要: https://www.lodashjs.com/docs/lodash.throttle#_throttlefunc-wait0-optionshttps://blog.csdn.net/glorydx/article/details/109893917 const _handleTogglePo 阅读全文
posted @ 2022-05-19 13:46 勤奋的小铁 阅读(26) 评论(0) 推荐(0) 编辑
摘要: import android.content.Context; import com.commerce.img.entity.DataUrl; import com.google.gson.Gson; import java.io.BufferedReader; import java.io.IOE 阅读全文
posted @ 2022-05-19 11:34 勤奋的小铁 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 在 Compose 层次结构中的导航函数,相当于xml >> Navigation组件。 implementation 'androidx.navigation:navigation-compose:2.4.1' 别导错了导成 androidx.navigation:navigation-runti 阅读全文
posted @ 2022-04-11 17:11 勤奋的小铁 阅读(641) 评论(0) 推荐(0) 编辑
摘要: @Suppress("DEPRECATION") private fun checkIfOnline(): Boolean { val cm = getSystemService(context, ConnectivityManager::class.java) return if (Build.V 阅读全文
posted @ 2022-04-11 11:45 勤奋的小铁 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 根据算法进行取色非常丝滑 阅读全文
posted @ 2022-04-07 14:35 勤奋的小铁 阅读(241) 评论(0) 推荐(0) 编辑
摘要: package com.tech.idealled.ble; import android.annotation.SuppressLint; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDe 阅读全文
posted @ 2022-03-29 17:47 勤奋的小铁 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 1.获取不含有虚拟键的高度 float heightWithOutKey = getWindowManager().getDefaultDisplay().getHeight(); 2.获取含有虚拟键的高度 getResources().getDisplayMetrics().heightPixel 阅读全文
posted @ 2022-03-24 10:28 勤奋的小铁 阅读(65) 评论(0) 推荐(0) 编辑
摘要: try { //利用对象调用getClass()方法获取该对象的Class实例; Class<?> argClass = searchView.getClass(); // mSearchPlate是SearchView父布局的名字,说白了就是获取一个类的成员变量 Field ownFieldSea 阅读全文
posted @ 2022-02-14 17:00 勤奋的小铁 阅读(280) 评论(0) 推荐(0) 编辑
摘要: public class ItemDragCallback extends ItemTouchHelper.Callback { private BleListAdapter mAdapter; private boolean mEdit; public ItemDragCallback(BleLi 阅读全文
posted @ 2021-12-28 17:59 勤奋的小铁 阅读(386) 评论(0) 推荐(0) 编辑
摘要: java private static List<String> sPermissions = new ArrayList<String>(){}; private static int MAX_NUMBER_REQUEST_PERMISSIONS = 2; private static int R 阅读全文
posted @ 2021-12-22 14:25 勤奋的小铁 阅读(454) 评论(0) 推荐(0) 编辑