第一阶段冲刺 觅踪1 昨天主要是对正则表达式的学习,今天家里的杂物比较多,忙活了一下午,晚上适当的做了一些按钮,为刚开始的登录注册页面做准备,睡了睡了 觅踪2 昨天的页面设计受到了停滞,今天换了一种形式,之前是直接用按键绘制,现在改为代码操纵,自己的进程缓慢了许多,明天将继续加油 界面代码如下: 复 ...
分类:
其他好文 时间:
2020-06-11 16:51:09
阅读次数:
44
1 Intent.ACTION_VIEW String android.intent.action.VIEW 用于显示用户的数据。比较通用,会根据用户的数据类型打开相应的Activity。比如 tel:13400010001打开拨号程序,http://www.g.cn则会打开浏览器等。 代码1: U ...
分类:
其他好文 时间:
2020-06-11 15:00:19
阅读次数:
55
今天制作的是界面上的跳转功能: 这个三个点的设置是Activity类中一个方法,可以在想显示这个三个点的Activity类中重写这个方法,如下所示: public class LoginActivity extends Activity{ @Override protected void onCre ...
分类:
其他好文 时间:
2020-06-10 13:29:53
阅读次数:
59
是因为iOS13上的不支持适配 let activity = UIActivityViewController(activityItems: [URL(fileURLWithPath: path)], applicationActivities: nil) activity.excludedActi ...
分类:
移动开发 时间:
2020-06-09 12:42:15
阅读次数:
113
题目描述 统计一个数字在排序数组中出现的次数。 题目连接: https://www.nowcoder.com/practice/70610bf967994b22bb1c26f9ae901fa2?tpId=13&tqId=11190&rp=1&ru=/activity/oj&qru=/ta/codin ...
分类:
编程语言 时间:
2020-06-09 09:58:05
阅读次数:
68
如下的代码是关于Android的类模板的代码,应该是对大伙有一些用。 package xxPACKAGENAMExx; import android.app.Activity;import android.os.Bundle; public class xxCLASSNAMExx extends A ...
分类:
移动开发 时间:
2020-06-08 14:32:38
阅读次数:
81
sar(System Activity Reporter系统活动情况报告),可以从多方面对系统的活动进行报告,包括:文件的读写情况、系统调用的使用情况、磁盘I/O、CPU、内存使用状况、进程活动及IPC有关的活动等。 sar -h [root@node0 ~]# sar -h Usage: sar ...
分类:
系统相关 时间:
2020-06-06 00:34:05
阅读次数:
69
相信有很多朋友都有过在 Activity 中通过 getWidth() 之类的方法获取 View 的宽高值,可能在 onCreate() 生命周期方法中,也可能在 onResume() 生命周期方法中。然而,不幸的是,并不能获取所要的结果,宽高值均为 0。 如果对 View 的绘制显示流程熟悉的话, ...
分类:
移动开发 时间:
2020-06-05 15:28:35
阅读次数:
79
报错:👇👇 Attempted to add application window with unknown token XXXUnable to add window——token android.os.BinderProxy@196e65b8 is not valid;is your act ...
分类:
移动开发 时间:
2020-06-05 11:40:11
阅读次数:
83
报错:👇👇 The layout "activity_main" in layout has no declaration in the base layout folder; this can lead to crashes when the resource is queried in a ...
分类:
移动开发 时间:
2020-06-05 11:39:54
阅读次数:
188