上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 179 下一页
摘要: 一,安装第三方库 库地址: https://mvnrepository.com/artifact/com.squareup.okhttp3/logging-interceptor 编辑 build.gradle,增加 // https://mvnrepository.com/artifact/com 阅读全文
posted @ 2025-06-14 15:22 刘宏缔的架构森林 阅读(155) 评论(0) 推荐(0)
摘要: 一,代码: 接口返回的json格式 接口类 package com.example.okdemo1.interfaces; import com.example.okdemo1.model.BaseEntity; import com.example.okdemo1.model.UserListEn 阅读全文
posted @ 2025-06-14 15:22 刘宏缔的架构森林 阅读(87) 评论(0) 推荐(0)
摘要: 一,安装第三方库 库地址: https://mvnrepository.com/artifact/com.squareup.retrofit2/retrofit 编辑build.gradle,添加 // https://mvnrepository.com/artifact/com.squareup. 阅读全文
posted @ 2025-06-14 15:22 刘宏缔的架构森林 阅读(93) 评论(0) 推荐(0)
摘要: 一,代码: 1,build.gradle的配置 buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-ru 阅读全文
posted @ 2025-06-14 15:22 刘宏缔的架构森林 阅读(22) 评论(0) 推荐(0)
摘要: 一,安装第三方库: 第三方库地址: https://mvnrepository.com/artifact/me.jessyan/autosize 编辑build.gradle,添加: // https://mvnrepository.com/artifact/me.jessyan/autosize 阅读全文
posted @ 2025-06-14 15:22 刘宏缔的架构森林 阅读(260) 评论(0) 推荐(0)
摘要: 一,?和!!的区别 ?.和!!主要区别在于它们对空指针的处理方式 ?.(安全调用操作符)‌:当变量可能为null时,使用?.可以安全地调用其方法或属性。 如果变量为null,则不执行调用,直接返回null !!(非空断言操作符)‌:当变量可能为null时,使用!!会强制执行调用, 如果变量为null 阅读全文
posted @ 2025-06-14 15:21 刘宏缔的架构森林 阅读(66) 评论(0) 推荐(0)
摘要: 一,安装第三方库 库地址: https://mvnrepository.com/artifact/com.github.li-xiaojun/XPopup 编辑build.gradle,添加: // https://mvnrepository.com/artifact/com.github.li-x 阅读全文
posted @ 2025-06-07 11:18 刘宏缔的架构森林 阅读(394) 评论(0) 推荐(0)
摘要: 一,gradle中的三种依赖 看例子: dependencies { //①.依赖当前项目下的某个模块[子工程] implementation project(':subject01') //②.依赖本地的某个jar文件 implementation files('libs/foo.jar', 'l 阅读全文
posted @ 2025-06-07 11:18 刘宏缔的架构森林 阅读(32) 评论(0) 推荐(0)
摘要: 一,implementation 配置 定义:implementation 是一种依赖配置,适用于那些仅在当前模块内部使用的依赖。传递性:当一个模块使用 implementation 声明依赖时,这个依赖不会被暴露给该模块的消费者(即依赖此模块的其他模块)。这意味着,如果模块 A 使用 implem 阅读全文
posted @ 2025-06-07 11:18 刘宏缔的架构森林 阅读(108) 评论(0) 推荐(0)
摘要: 一,安装第三方库 https://mvnrepository.com/artifact/com.google.android.flexbox/flexbox 编辑build.gralde,添加: // https://mvnrepository.com/artifact/com.google.and 阅读全文
posted @ 2025-06-07 11:18 刘宏缔的架构森林 阅读(189) 评论(0) 推荐(0)
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 179 下一页