简体   繁体   English

如何在 Android 应用程序的对话框中打开 Chrome 自定义选项卡

[英]How to open Chrome Custom Tab in a Dialog in Android Application

In my current Android application I have a requirement to open a DialogFragment to display a list of results.在我当前的 Android 应用程序中,我需要打开一个 DialogFragment 来显示结果列表。

Each Result has an associated url that explains the item in more detail.每个 Result 都有一个关联的 url,可以更详细地解释该项目。

I can open a Chrome Custom Tab with this url, however it closes the DialogFragment and the user has a poor experience.我可以使用此 url 打开 Chrome 自定义选项卡,但是它关闭了 DialogFragment 并且用户体验很差。

Is it possible that I could open the Crome Custom Tab within its own Dialog?我可以在自己的对话框中打开 Crome 自定义选项卡吗?

That way my Results DialogFragment should not be closed, and the user can return directly to the results list.这样我的 Results DialogFragment 就不应该关闭,用户可以直接返回结果列表。

目前,自定义选项卡使用整个屏幕,因此无法以类似于 DialogFragment(不使用屏幕的整个宽度/高度)的方式使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 android:从片段打开chrome自定义选项卡 - android : open chrome custom tab from fragment 如何在Android的自定义对话框中打开自定义对话框 - how to open custom dialog box in a custom dialog box in android Android Chrome浏览器“自定义”标签-在新标签+ Postmessage中打开链接 - Android Chrome Custom Tabs - Open link in new tab + Postmessage Android 应用链接 - 从应用打开 URL 到自定义 chrome 标签 - Android app link - Open URL from app to custom chrome tab Android-打开Chrome自定义标签,而不是启动网络浏览器PublisherAdView - Android - open Chrome custom tab instead of launch web browser PublisherAdView 如何在 Chrome 自定义标签 android 中隐藏 url - How to hide url in Chrome custom tab android Android Inside 自定义对话框:- 如何打开 DatePickerDialog? - Android Inside custom dialog :- How to open DatePickerDialog? 标签活动中的android自定义对话框 - android custom dialog on tab activity 如何在Android应用程序上没有活动的情况下打开自定义对话框(或在收到服务发出的推送通知时) - How can i open a custom dialog without activity (or when i received push notitfication by Service) on Android Application 如何使用 Onesignal 在 android 中打开应用程序时显示自定义通知对话框 - How to show custom notification dialog when application is open in android using Onesignal
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM