![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
lxc372063885
这个作者很懒,什么都没留下…
展开
-
byte数组与16进制字符串的互相转换
public class HexUtil { /** * 用于建立十六进制字符的输出的小写字符数组 */ private static final char[] DIGITS_LOWER = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e...原创 2020-04-24 10:08:30 · 602 阅读 · 0 评论 -
Java byte 数据获取高四位和低四位的方法
```java//获取高四位public static int getHeightFour(byte data){ int heightfour; height = ((data & 0xf0) >> 4); return heightfour;} //获取低四位public static int getLowFour(byte data){...原创 2019-11-01 16:33:07 · 2053 阅读 · 0 评论 -
Android 单例设计模式之(双重校验锁)(同时具有效率与线程安全)
Android 单例设计模式之(双重校验锁)(同时具有效率与线程安全)public class Singleton { private static volatile Singleton instance= null; private Singleton(){} public static Singleton getSingleton(){ if(...原创 2019-10-25 13:39:55 · 700 阅读 · 0 评论 -
Android 原生dialog 使用方式
public class MyDialog { private Context context; private AlertDialog.Builder builder; private ProgressDialog progressDialog; public MyDialog(Context context) { this.context = ...原创 2019-09-27 11:41:54 · 279 阅读 · 0 评论