上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 169 下一页
摘要: 一,代码: <?xml version="1.0" encoding="utf-8"?> <GridLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent 阅读全文
posted @ 2025-05-17 08:18 刘宏缔的架构森林 阅读(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-17 08:16 刘宏缔的架构森林 阅读(22) 评论(0) 推荐(0)
摘要: 一,安装第三方库: 地址: https://mvnrepository.com/artifact/com.google.code.gson/gson build.gradle中dependencies添加: implementation 'com.google.code.gson:gson:2.13 阅读全文
posted @ 2025-05-10 09:06 刘宏缔的架构森林 阅读(27) 评论(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:05 刘宏缔的架构森林 阅读(34) 评论(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:05 刘宏缔的架构森林 阅读(79) 评论(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:05 刘宏缔的架构森林 阅读(40) 评论(0) 推荐(0)
摘要: 一,代码: gson库安装方式见我其他博文 传递对象的类: package com.example.okdemo1.model; public class Goods1 { //商品id private int id; //商品名称 private String name; public Goods 阅读全文
posted @ 2025-05-10 09:05 刘宏缔的架构森林 阅读(10) 评论(0) 推荐(0)
摘要: 一,代码: 1,用来传递对象的类 package com.example.okdemo1.model; import java.io.Serializable; public class Goods2 implements Serializable { //商品id private int id; 阅读全文
posted @ 2025-05-10 09:05 刘宏缔的架构森林 阅读(17) 评论(0) 推荐(0)
摘要: 一,代码: 1,所传递对象的类 package com.example.okdemo1.model; import android.os.Parcel; import android.os.Parcelable; public class Goods3 implements Parcelable { 阅读全文
posted @ 2025-05-10 09:05 刘宏缔的架构森林 阅读(22) 评论(0) 推荐(0)
摘要: 一,官方文档 https://developer.android.google.cn/studio/debug?authuser=1&hl=zh-cn 二,启动调试 1,点击工具栏上按钮,启动调试 2,对运行的进程进行调试: 点击工具栏上的Attach debugger to Android pro 阅读全文
posted @ 2025-05-10 09:05 刘宏缔的架构森林 阅读(78) 评论(0) 推荐(0)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 169 下一页