上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 169 下一页
摘要: 一,报错信息: Caused by: android.content.res.Resources$NotFoundException: Drawable (missing name) with resource ID #0x7f050224 Caused by: android.content.re 阅读全文
posted @ 2025-05-10 09:02 刘宏缔的架构森林 阅读(167) 评论(0) 推荐(0)
摘要: 一,代码: xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="300dp" 阅读全文
posted @ 2025-05-10 09:02 刘宏缔的架构森林 阅读(11) 评论(0) 推荐(0)
摘要: 一,代码: xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/ 阅读全文
posted @ 2025-05-10 09:01 刘宏缔的架构森林 阅读(40) 评论(0) 推荐(0)
摘要: 一,代码: xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/ 阅读全文
posted @ 2025-05-10 09:01 刘宏缔的架构森林 阅读(26) 评论(0) 推荐(0)
摘要: 一,常用属性: 常用属性: layout_constraintLeft_toLeftOf:左边和目标组件的左边对齐layout_constraintLeft_toRightOf:左边和目标组件的右边对齐layout_constraintRight_toLeftOf:右边和目标组件的左边对齐layou 阅读全文
posted @ 2025-05-10 09:01 刘宏缔的架构森林 阅读(60) 评论(0) 推荐(0)
摘要: 一,代码: rouned_corner.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectan 阅读全文
posted @ 2025-05-10 09:01 刘宏缔的架构森林 阅读(14) 评论(0) 推荐(0)
摘要: 一,代码: press_rounded_corner.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item andr 阅读全文
posted @ 2025-05-10 09:01 刘宏缔的架构森林 阅读(13) 评论(0) 推荐(0)
摘要: 一,安装第三方库: 库地址: https://mvnrepository.com/artifact/org.greenrobot/eventbus 编辑build.gradle, 添加以下内容: // https://mvnrepository.com/artifact/org.greenrobot 阅读全文
posted @ 2025-05-10 08:54 刘宏缔的架构森林 阅读(19) 评论(0) 推荐(0)
摘要: 一,权限 <uses-permission android:name="android.permission.INTERNET"/> 二,代码: xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget. 阅读全文
posted @ 2025-05-10 08:54 刘宏缔的架构森林 阅读(44) 评论(0) 推荐(0)
摘要: 一,在已有项目中创建模块: 项目上右键->New->Module 类型选择Android Library,并为模块命名 创建完成后,新模块的目录和app是平级的 可以看到项目的settings.gradle已经包含了新建的模块 二,配置依赖 1,主模块app的build.gradle的depende 阅读全文
posted @ 2025-05-10 08:54 刘宏缔的架构森林 阅读(97) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 169 下一页