将产品图片的尺寸更改为全屏,并检测网络视图内部链接的点击,就像在广告点击中一样

问题描述 投票:-1回答:1

我有一个显示亚马逊广告的URL,我想将这些广告显示在全屏上,目前只有一小部分。链接为(“ <html><body><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0 \" allowfullscreen\" src=\"https://ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=IN&source=ac&ref=qf_br_asin_til&ad_type=product_link&tracking_id=tbads-21&marketplace=amazon&region=IN&placement=B00S850C5C&asins=B00S850C5C&linkId=e94991b5343851a4984109af678e7487&show_border=false&link_opens_in_new_window=false&price_color=333333&title_color=0066c0&bg_color=ffffff\"allowfullscreen\"></iframe></body></html>”),并且还希望在点击广告时进行处理(检测)。我正在webview中打开链接。更改html部件中的高度和宽度不会改变大小。任何解决方案?预先感谢。enter image description here

android webview click size
1个回答
0
投票

最好使用Picasso,如果URL仅给您图像,则尝试将图像属性的比例类型设置为fitXY

© www.soinside.com 2019 - 2024. All rights reserved.