热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Android:以圆圈形状显示webview-Android:showwebviewinacircledshape

Ihaveaandroidwebviewasbelow:我有一个androidwebview如下:<WebViewandroid:layout_widt

I have a android webview as below :

我有一个android webview如下:


I have to show this webview in circle shape. I am new to android. Googled and tried many codes. But it is not working. Can any one please give me drawable code to show webview in circled shape just as in whattsapp user images.

我必须以圆圈形状显示此webview。我是android的新手。谷歌搜索并尝试了许多代码。但它没有用。任何人都可以给我一些可绘制的代码,以圆圈形状显示webview,就像在whattsapp用户图像中一样。

2 个解决方案

#1


0  

Create new xml circle.xml and paste this code
.

创建新的xml circle.xml并粘贴此代码。




    
    

#2


0  

This is webview layout

这是webview布局


rounded.xml

rounded.xml


    
    
 

This code works for me check this link

这段代码适用于我查看此链接


推荐阅读
author-avatar
天涯小犁_640
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有