当前位置:网站首页>How to destroy a fragment- How to destroy Fragment?
How to destroy a fragment- How to destroy Fragment?
2022-06-13 02:30:00 【Bustling city 】
problem :
I have one Activity . I have one Activity .The Activity has two Fragment s.Activity There are two Fragment .Fragment A is Menu. fragment A It's the menu .Fragment B is Detail. fragment B It's details .
I try to Make other Fragment C in Fragment B, so, There are 3 Fragment in the Activity . I tried in the clip B Make other clips in C, therefore , Activity Yes 3 A fragment .And I try to Replace Fragment B to Fragment D. I try to put the fragment B Replace with a fragment D.
I guess Fragment B and C is dead. I guess the clip B and C It's dead .BUT these Fragments is alive. But these clips are still alive .Just Fragments are onDestroyView() state. It's just Fragments be in onDestroyView() state .I want onDestroy() or onDetach() . I want onDestroy() or onDetach() .
What do I do for Fragments.onDestroy() or onDetach() ? What am I gonna do? Fragments.onDestroy() or onDetach() ?I can't destroy or change the Activity . I cannot destroy or change Activity .
Solution :
Reference resources : https://stackoom.com/en/question/Ts1r边栏推荐
- [51nod.3210] binary Statistics (bit operation)
- Configuring virtual private network FRR for Huawei equipment
- C language compressed string is saved to binary file, and the compressed string is read from binary file and decompressed.
- Priority queue with dynamically changing priority
- Bluetooth module: use problem collection
- Yovo3 and yovo3 tiny structure diagram
- [dest0g3 520 orientation] dest0g3, which has been a long time since we got WP_ heap
- Easydl related documents and codes
- [reading papers] deep learning face representation from predicting 10000 classes. deepID
- About the fact that I gave up the course of "Guyue private room course ROS manipulator development from introduction to actual combat" halfway
猜你喜欢

Configuring virtual private network FRR for Huawei equipment

Laravel 权限导出

ROS learning -5 how function packs with the same name work (workspace coverage)

Solution of depth learning for 3D anisotropic images

01 初识微信小程序

Chapter7-11_ Deep Learning for Question Answering (2/2)

Cumulative tax law: calculate how much tax you have paid in a year

Armv8-m learning notes - getting started

ROS learning-7 error in custom message or service reference header file
![[pytorch] kaggle image classification competition arcface + bounding box code learning](/img/1e/5e921987754da1e1750acdadb36849.jpg)
[pytorch] kaggle image classification competition arcface + bounding box code learning
随机推荐
Sensor: MQ-5 gas module measures the gas value (code attached at the bottom)
redis 多个服务器共用一个
Basic exercises of test questions Fibonacci series
How to solve the problem of obtaining the time through new date() and writing out the difference of 8 hours between the database and the current time [valid through personal test]
Armv8-m learning notes - getting started
Jump model between mirrors
Huawei equipment is configured with CE dual attribution
Think: when do I need to disable mmu/i-cache/d-cache?
The fastest empty string comparison method C code
拍拍贷母公司信也季报图解:营收24亿 净利5.3亿同比降10%
Understand HMM
[51nod.3210] binary Statistics (bit operation)
智能安全配电装置如何减少电气火灾事故的发生?
Configuring virtual private network FRR for Huawei equipment
[pytorch] kaggle image classification competition arcface + bounding box code learning
Sans certificate generation
03 recognize the first view component
02 优化微信开发者工具默认的结构
SANs证书生成
Huawei equipment configures private IP routing FRR
