ListFragment为DialogFragment [英] ListFragment as DialogFragment

查看:143
本文介绍了ListFragment为DialogFragment的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能显示 ListFragment 对话框?或者,有没有办法,我要实现我自己的的ListView ,空的TextView 和不确定进度 DialogFragment 自己?

Is it possible to show ListFragment as Dialog? Or there's no way and I should implement my own ListView, empty TextView and indeterminate ProgressBar inside DialogFragment myself?

推荐答案

我不是很确定它是否适用于ListFragment或没有,但我们可以通过应用主题活动清单文件作为展示活动的对话:

I am not very sure whether it works with ListFragment or not but we can show an activity as Dialog by applying a theme to activity in manifest file as:

<activity android:theme="@android:style/Theme.Dialog" />

请尝试用你的ListFragment,让我知道,如果它的工作原理。

Please try with your ListFragment, and let me know if it works.

感谢你。

这篇关于ListFragment为DialogFragment的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆