原理是这样,我们在SharedPreferences中存储一个int型数据,用来代表第几次登录,每次启动时都读取出来判断是不是第一次启动,然后依次判断是否要显示欢迎界面, 具体实现如下: 设置一个欢迎界面的Activity,并设置为主Activity,在判断第几次启动后来决定要不要跳转到MainAc ...
分类:
移动开发 时间:
2020-02-19 21:03:36
阅读次数:
118
最近在rancher平台中部署elasticsearch时容器出现了"Read-only file system" setting key "vm.max_map_count"的报错,通过命令查看 sysctl -a|grep vm.max_map_count 发现vm.max_map_count配 ...
分类:
其他好文 时间:
2020-02-19 13:12:00
阅读次数:
120
在使用webpack打包时,将css代码从bundle.js中抽离出来,单独出一个模块,需要用到extract-text-webpack-plugin插件 webpack版本不同,相对于的插件也不同,如下: # for webpack 4 npm install --save-dev mini-cs ...
分类:
Web程序 时间:
2020-02-19 11:34:00
阅读次数:
108
直接上代码 1 import android.support.v7.app.AppCompatActivity; 2 import android.os.Bundle; 3 import android.view.LayoutInflater; 4 import android.view.View; ...
分类:
其他好文 时间:
2020-02-19 00:50:47
阅读次数:
81
新建xml文件,内容如下: 1 <?xml version="1.0" encoding="UTF-8"?> 2 3 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 4 xmlns:xsi="http://www.w3.org/200 ...
分类:
系统相关 时间:
2020-02-18 18:10:27
阅读次数:
193
FAILURE: Build failed with an exception. * What went wrong:Execution failed for task ':shared_preferences:verifyReleaseResources'.> A failure occurred ...
分类:
其他好文 时间:
2020-02-18 09:48:09
阅读次数:
464
1.日志配置:<settings> <setting name="logImpl" value="STDOUT_LOGGING"/>//自带日志 <setting name="logImpl" value="LOG4J"/>//第三方日志</settings>2.配置文件:log4j.propert ...
分类:
其他好文 时间:
2020-02-17 18:11:37
阅读次数:
83
vundle (vim 插件管理器) Vundle 简介 Vundle 是 Vim bundle 的简称,是一个 Vim 插件管理器. (bundle 是 打包的文件、程序的集合) Vundle 允许你做… 在 .vimrc中 跟踪 和 管理 插件 安装特定格式的插件(a.k.a. scripts/ ...
分类:
系统相关 时间:
2020-02-17 14:17:56
阅读次数:
104
前言 一个Java加密方法需要转为PHP的方法... 步骤 导入 File Project Settings Modules 把需要导入的文件添加到Source中 运行 ...
分类:
编程语言 时间:
2020-02-17 12:29:43
阅读次数:
125
打开 Setting-->Appearance & Behavior -->Syetem Setting -->Updates,将Use secure connection 的勾选去掉,如下图所示配置。 然后关闭IDEA,重启,重新搜索plugins,已经可以正常连网搜索了。 1、关闭windows ...
分类:
其他好文 时间:
2020-02-17 00:52:19
阅读次数:
105