- 博客(7)
- 收藏
- 关注
原创 树莓派学习笔记(一)
在SD卡的 /boot分区下,新建一个名为 wpa_supplicant.conf的文件,并且填写一下内容:country=CNctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevupdate_config=1network={ ssid="12345" //wifi 名称 psk="12345678" //wifi密码 key_mgmt=WPA-PSK //密码加密类型 我的wifi使用WPA/WPA2加密
2020-06-28 22:43:21
228
原创 Android笔记 二 ZXing简单使用
图片导入包 //XToast implementation 'com.hjq:xtoast:5.5' //ToastUtil implementation 'com.hjq:toast:8.0' //TastyToast implementation 'com.sdsmdg.tastytoast:tastytoast:0.1.1' @BindView(R.id.btn_confusing) Button btnConfusing;
2020-06-24 17:10:19
409
原创 Android 笔记一 (DoubleUtil 提供的较为精确的加减乘除)
public class DoubleUtil implements Serializable { //设置精度范围(default divide scale),保留到小数点后两位 private static final Integer def_div_scale = 2; /** * 提供精确的加法运算。 * * @param value1 被加数 * @param value2 加数 * @return 两个参数的和
2020-06-10 15:23:01
660
1
原创 ObjectBox使用
Step 1,build.gradle(Project)// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { ext.objectboxVersion = '2.3.4' //------》ObjectBox配置...
2020-04-09 11:00:24
858
2
原创 EventBus简单使用(附demo)
Demo功能:MainActivity是订阅者,界面有两个按钮(一个按钮用于接收,一个用于跳转到Main2Activity)Main2Activity是事件发布者,界面有两个按钮(一个用于发布红色背景信息,一个发布蓝色)。Step1, Module app 导入 EventBus 包 implementation 'org.greenrobot:eventbus:3.0.0' ...
2020-04-09 09:49:02
250
原创 Math.round计算方法
Math.round()(Java)Description(英文原文描述)If the fractional portion of the argument is greater than 0.5, the argument is rounded to the integer with the next higher absolute value. If it is less than 0.5...
2020-02-27 21:12:19
446
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人