简体   繁体   中英

Show Adview on Google custom tab

I am using Google Custom Tab in application to show external content.

Is there any way we can show Adview on top of the opened content in the tab?

Although a Custom Tab shares the same task stack as the host application, it belongs to a different process: the browser. That means that the host application doesn't have access to the View hierarchy and will not be able to add an AdView on top of the Custom Tab activity.

Custom Tab allows a developer to add a custom, 56dp high RemoteView to the bottom. It's the same RemoteViews used to create AppWidgets and follows the same limitations, so adding an AddView inside it probably won't be possible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM