自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 1388

原创 kotlin学习笔记

函数 & 方法 类中的函数为方法;有receiver的函数即为方法;类是方法的receiver; 函数返回值为空时,为 Unit 可以省略; 函数的类型 foo() {} () -> Unit foo(p0: Int): String (Int) -> String class Foo { fun bar(p0: String, p1: Long): Any{...} } Foo.(String, Long) -> Any (Fo

2020-08-23 15:59:59 571

原创 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 518

原创 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 476

原创 git常用命令归纳

git-cmd git init 初始化本地git仓库; git add . | git add xxx 添加文件到暂存区;. 当前文件夹下所有文件 xxx 是具体文件路径; git commit -m "提交信息" 提交所有暂存区文件到本地版本库; git remote add <name> <url> 添加远端仓库地址;name 是远端仓库名字,一般为...

2020-03-04 17:48:45 192

原创 mac 配置mysql 环境变量

mac 配置mysql 环境变量 解决:安装mysql后,在终端输入mysql提示 Mac -bash: mysql: command not found问题 下载安装mysql mysql v8.0.12 https://dev.mysql.com/downloads/mysql/ 配置mysql时使用user legacy password encryption (兼容性好些)...

2018-09-09 11:58:33 6558

原创 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 372

原创 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 368

原创 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 342

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除