- 博客(9)
- 收藏
- 关注
原创 Android Material Motion 过渡模式使用总结
写在前面本文是对 Material Motion过渡模式的使用进行总结, 适用于已经明白过渡模式的使用但忘记具体代码实现的开发者. 本文用例基于 androidx 和 kotlin . 详细完整教程请查阅: material-motion-android.一. 简介material-motion-android 是MDC-Android库中的一组过渡模式; 其中主要包含四种过渡模式:Container Transform : 包含 container 的UI元素之间的转换 在两个不同的UI元
2020-12-02 14:37:11 1265
原创 kotlin学习笔记
函数 & 方法类中的函数为方法;有receiver的函数即为方法;类是方法的receiver;函数返回值为空时,为 Unit 可以省略;函数的类型foo() {} () -> Unitfoo(p0: Int): String (Int) -> Stringclass Foo { fun bar(p0: String, p1: Long): Any{...}}Foo.(String, Long) -> Any(Fo
2020-08-23 15:59:59 501
原创 macOS nexus搭建
下载 nexus 并解压官网下载地址: https://www.sonatype.com/download-oss-sonatype我使用的是版本为: nexus-3.24.0-02解压后目录结构nexus 基础命令命令行进入本地nexus-3.24.0-02的bin目录,然后使用一下命令 $ ./nexus start 启动 $ ./nexus stop 停止 $ ./nexus restart 重启启动 nexus.
2020-06-30 18:02:50 436
原创 Android Service 小结
Android Service 小结IntentService创建public class MyIntentService extends IntentService { /** * Creates an IntentService. Invoked by your subclass's constructor. * */ public MyIntentService() { //Used to name the worker t
2020-06-24 21:07:26 420
原创 git常用命令归纳
git-cmdgit init 初始化本地git仓库;git add . | git add xxx 添加文件到暂存区;. 当前文件夹下所有文件 xxx 是具体文件路径;git commit -m "提交信息" 提交所有暂存区文件到本地版本库;git remote add <name> <url> 添加远端仓库地址;name 是远端仓库名字,一般为...
2020-03-04 17:48:45 152
原创 mac 配置mysql 环境变量
mac 配置mysql 环境变量解决:安装mysql后,在终端输入mysql提示 Mac -bash: mysql: command not found问题下载安装mysqlmysql v8.0.12 https://dev.mysql.com/downloads/mysql/ 配置mysql时使用user legacy password encryption (兼容性好些)...
2018-09-09 11:58:33 6486
原创 Android_Xml 文件(数据) 生成 与 解析
一 xml文件生产 使用 XmlSerializer 类,编写数据File file = new File(getFilesDir(), "user.xml");String name = etUser.getText().toString().trim();String psw = etPsw.getText().toString().trim();try { OutputSt
2016-07-13 13:50:34 346
原创 Android_GET与POST_面向对象
一 GETString path = "http://v.juhe.cn/toutiao/index"; //接口地址String parameter = "?type=&key=***"; //请求参数try { HttpClient client = new DefaultHttpClient(); //"客户端" HttpGet get = new HttpGet(path
2016-06-26 11:00:49 345
原创 Android_GET与POST_面向过程
Android中的 GET 与 POST 的编程都是模板代码,只要了解记忆即可一 get (解析JSON格式数据)String path = "http://v.juhe.cn/toutiao/index"; //接口地址String parameter = "?type=&key=31d89eba742b2e8401b28e238b0853f8"; //请求参数try { URL ur
2016-06-25 21:46:55 307
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人