[英]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.