2020年1月19日

3000多台式机组装经验分享

摘要: 用途:主要用来家里做一些开发 配置清单 主板:华硕(ASUS)TUF B360M-PLUS GAMING S 游戏主板 价格:¥638.99 CPU:英特尔(Intel) i3 8100 酷睿四核 盒装CPU处理器 价格:¥899 内存条:金士顿(Kingston) DDR4 2666 8GB 台式 阅读全文

posted @ 2020-01-19 23:31 guangdeshishe 阅读(457) 评论(0) 推荐(0) 编辑

2018年5月10日

android textview 自动换行 整齐排版

摘要: 原文:https://www.cnblogs.com/goagent/p/5159125.html 阅读全文

posted @ 2018-05-10 13:46 guangdeshishe 阅读(2812) 评论(0) 推荐(0) 编辑

2017年10月20日

android 获取所有SD卡目录

摘要: //返回sd卡路径public static List<String> getStorageDirectories(Context context) { StorageManager sm = (StorageManager) context.getSystemService(Context.STO 阅读全文

posted @ 2017-10-20 11:17 guangdeshishe 阅读(300) 评论(0) 推荐(0) 编辑

2017年10月19日

android获取系统信息

摘要: 连接手机,adb shell 进入 Android Shell 模式,输入 getprop 获取系统属性值 通过上面方法拿到属性名,然后通过下面方法获取到系统的属性值 阅读全文

posted @ 2017-10-19 18:36 guangdeshishe 阅读(307) 评论(0) 推荐(0) 编辑

2017年10月14日

在电脑上用chrome浏览器调试android手机里的网页代码时,无法看到本地加载的js文件

摘要: 在需要调试的js文件最顶部加上代码就可以看到了: console.log('haha'); debugger; console.log('haha'); debugger; 阅读全文

posted @ 2017-10-14 17:53 guangdeshishe 阅读(377) 评论(0) 推荐(0) 编辑

2017年10月9日

android 根据坐标返回触摸到的View

摘要: //根据坐标返回触摸到的Viewprivate View getTouchTarget(View rootView, int x, int y) { View targetView = null; // 判断view是否可以聚焦 ArrayList<View> touchableViews = ro 阅读全文

posted @ 2017-10-09 10:46 guangdeshishe 阅读(826) 评论(0) 推荐(0) 编辑

2017年7月25日

android TextView 支持长按自由复制

摘要: 因为EditText支持系统的长按自由复制,所以只需要把EditText通过配置达到TextView效果就行了 阅读全文

posted @ 2017-07-25 17:08 guangdeshishe 阅读(549) 评论(0) 推荐(0) 编辑

2017年7月17日

android 代码实现模拟用户点击、滑动等操作

摘要: /** * 模拟用户点击 * * @param view 要触发操作的view * @param x 相对于要操作view的左上角x轴偏移量 * @param y 相对于要操作view的左上角y轴偏移量 */private static void analogUserClick(View view, float x, float y) { if (view == null) { ... 阅读全文

posted @ 2017-07-17 18:27 guangdeshishe 阅读(5950) 评论(2) 推荐(0) 编辑

2017年7月4日

android 如何查看socket、websocket通信数据 抓包

摘要: 怎么使用可以自行百度 阅读全文

posted @ 2017-07-04 16:40 guangdeshishe 阅读(2405) 评论(0) 推荐(0) 编辑

2017年6月20日

android 直接添加一个Fragment到activity,不需要额外setContentView

摘要: getSupportFragmentManager().beginTransaction().replace(android.R.id.content,new ArticleListFragment()).commit(); 阅读全文

posted @ 2017-06-20 12:05 guangdeshishe 阅读(349) 评论(0) 推荐(0) 编辑

导航