DialogFragment
时间: 2024-02-01 22:47:37 浏览: 83
DialogFragment.rar
4星 · 用户满意度95%
DialogFragment是一种弹窗实现方式,本质上是继承自Fragment并包装了Dialog的类。它允许我们通过Fragment的方式来管理Dialog弹窗。DialogFragment类继承自Fragment,并且实现了Dialog的cancel和dismiss行为。因此,我们可以使用DialogFragment来显示和管理弹窗对话框。更多关于DialogFragment的使用和详细信息,可以查看Android官方文档中关于DialogFragment的指南。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Android 官方推荐 : DialogFragment 创建对话框](https://blog.csdn.net/lmj623565791/article/details/37815413)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [针对 DialogFragment 状态异常和内存泄漏的解决方案](https://blog.csdn.net/weixin_61845324/article/details/124039946)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文