上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 202 下一页
摘要: 一,代码: <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/andr 阅读全文
posted @ 2025-06-02 12:22 刘宏缔的架构森林 阅读(53) 评论(0) 推荐(0)
摘要: 一,fragment生命周期以及和activity生命周期的关系 和activity生命周期的关系 二,代码: viewpager2的两个fragment cate1 package com.example.okdemo1.fragment; import android.app.Activity; 阅读全文
posted @ 2025-06-02 12:22 刘宏缔的架构森林 阅读(76) 评论(0) 推荐(0)
摘要: 一,代码: xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_ 阅读全文
posted @ 2025-05-24 17:58 刘宏缔的架构森林 阅读(244) 评论(0) 推荐(0)
摘要: 一,代码: adapter public class MyRecycleAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { private Context context; private static final int 阅读全文
posted @ 2025-05-24 17:57 刘宏缔的架构森林 阅读(53) 评论(0) 推荐(0)
摘要: 一,代码: adapter: package com.example.okdemo1.adapter; import androidx.recyclerview.widget.RecyclerView; import android.content.Context; import android.v 阅读全文
posted @ 2025-05-24 17:57 刘宏缔的架构森林 阅读(80) 评论(0) 推荐(0)
摘要: 一,代码: xml: activity <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.co 阅读全文
posted @ 2025-05-24 17:57 刘宏缔的架构森林 阅读(170) 评论(0) 推荐(0)
摘要: 一,代码: 1,xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/re 阅读全文
posted @ 2025-05-24 17:57 刘宏缔的架构森林 阅读(93) 评论(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-24 17:57 刘宏缔的架构森林 阅读(40) 评论(0) 推荐(0)
摘要: 一,官方文档: https://developer.android.google.cn/training/data-storage/shared/photopicker?authuser=5&hl=zh-cn#java 二,代码: package com.example.okdemo1.activi 阅读全文
posted @ 2025-05-24 17:56 刘宏缔的架构森林 阅读(185) 评论(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-24 17:56 刘宏缔的架构森林 阅读(58) 评论(0) 推荐(0)
上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 202 下一页