【Android常用工具】
博中自有黄金屋
读书要专心,做事要用心,做人要尽心,待人要诚心
展开
-
Android 全面屏的和有导航栏的判断
/** * 工具类 */ public class ScreenUtils { private static Context sContext; public static void init(Context context) { sContext = context.getApplicationContext(); } public...原创 2020-01-21 11:29:32 · 759 阅读 · 0 评论 -
android透明度设置
百分比:0% HEX: 00 百分比:1% HEX: 30 百分比:2% HEX: 50 百分比:3% HEX: 80 百分比:4% HEX: A0 百分比:5% HEX: D0 百分比:6% HEX: F0 百分比:7% HEX: 12 百分比:8% HEX: 14 百分比:9% HEX: 17 百分比:10% HEX: 1A 百分比:11% HEX: 1C 百分比:12% ...转载 2019-06-28 11:25:02 · 1129 阅读 · 0 评论 -
android adb的配置以及 java环境变量的配置
adb的配置以及使用在SDK的Tools文件夹下包含着Android模拟器操作的重要命令ADB,ADB的全称为Android Debug Bridge,就是调试桥的作用,借助这个工具,我们可以管理设备或手机模拟器的状态 ,还可以进行以下的操作: 快速更新设备或手机模拟器中的代码,如应用或Android系统升级 在设备上运行Shell命令 管理设备或手机模拟器上的预定端口 在设备或手机模拟器上复制或粘原创 2017-02-23 11:36:55 · 1113 阅读 · 0 评论 -
android 判断字符串是否是数字
/** * 判断字符串是否是数字 */ public class StringIsNum { public static boolean isNumber(String str) { if (str.isEmpty()) { return false; } char[] chars = str.toCharArra原创 2016-11-03 14:09:47 · 3453 阅读 · 0 评论