上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 169 下一页
摘要: 一,代码: 原activity //得到launcher ActivityResultLauncher launcher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), new Act 阅读全文
posted @ 2025-05-24 17:54 刘宏缔的架构森林 阅读(46) 评论(0) 推荐(0)
摘要: 一,代码: //给按钮增加点击事件:旋转 Button rotateButton = findViewById(R.id.rotateButton); rotateButton.setOnClickListener(new View.OnClickListener() { @Override pub 阅读全文
posted @ 2025-05-24 17:54 刘宏缔的架构森林 阅读(8) 评论(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:21 刘宏缔的架构森林 阅读(28) 评论(0) 推荐(0)
摘要: 一,代码 线上的数据: activity package com.example.okdemo1.activity; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import an 阅读全文
posted @ 2025-05-17 08:21 刘宏缔的架构森林 阅读(21) 评论(0) 推荐(0)
摘要: 一,代码: 线上的数据: activity package com.example.okdemo1.activity; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import a 阅读全文
posted @ 2025-05-17 08:21 刘宏缔的架构森林 阅读(18) 评论(0) 推荐(0)
摘要: 一,代码: 线上的数据: activity package com.example.okdemo1.activity; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import a 阅读全文
posted @ 2025-05-17 08:20 刘宏缔的架构森林 阅读(9) 评论(0) 推荐(0)
摘要: 一,报错信息 Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not foun 阅读全文
posted @ 2025-05-17 08:20 刘宏缔的架构森林 阅读(176) 评论(0) 推荐(0)
摘要: 一,创建application 代码: package com.example.okdemo1; import android.app.Application; import android.content.res.Configuration; import androidx.annotation. 阅读全文
posted @ 2025-05-17 08:19 刘宏缔的架构森林 阅读(43) 评论(0) 推荐(0)
摘要: 一,代码: <?xml version="1.0" encoding="utf-8"?> <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/an 阅读全文
posted @ 2025-05-17 08:18 刘宏缔的架构森林 阅读(22) 评论(0) 推荐(0)
摘要: 一,代码: <?xml version="1.0" encoding="utf-8"?> <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/an 阅读全文
posted @ 2025-05-17 08:18 刘宏缔的架构森林 阅读(224) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 169 下一页