【问题标题】:Using Dialog with youtube API YouTubeStandalonePlayer.createVideoIntent()将 Dialog 与 youtube API YouTubeStandalonePlayer.createVideoIntent() 一起使用
【发布时间】:2014-10-30 12:18:09
【问题描述】:

我的应用显示 youtube 视频列表,当用户选择一个时,我开始使用播放视频

YouTubeStandalonePlayer.createVideoIntent()。播放视频大约 2 分钟后,我想显示一个 对话框。

但问题是,我的 Dialog 显示在播放窗口下,所以在按下 Back 键之前它是隐藏的

停止播放视频。

我的问题:有什么方法可以暂时暂停播放视频以显示对话框?

【问题讨论】:

    标签: android android-activity dialog


    【解决方案1】:

    我发现其他解决方案是启动新的 Activtiy,它只显示弹出窗口。但我把这个活动变成了

    使用android:theme="@android:style/Theme.Dialog" 透明为弹出窗口

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-29
      • 1970-01-01
      • 2016-07-27
      • 2021-12-14
      • 2014-01-14
      • 1970-01-01
      • 2020-01-03
      • 1970-01-01
      相关资源
      最近更新 更多