如何在布局中制作像Google一样的缺口 [英] How to make a notch like google pay in a layout

查看:57
本文介绍了如何在布局中制作像Google一样的缺口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在尝试开发类似的Google Pay用户界面,您可以在下面找到参考图片

Hello I'm trying to develop a similar UI of Google pay, you can find the reference image below

(靠近付费徽标的那部分缺口)

(That notch kind of part near to Pay logo)

但是我不知道如何实现它,请有人提供参考或代码来创建它

but I don't know how to achieve it, please someone give a reference or code to create this

我有一个布局,直到里面有一个图表的蓝色部分,现在我需要像这样开发下面的部分,您可以在下面找到我的UI设计

I have a layout till that blue part with a chart inside it, now I need to develop below part like that, you can find my UI design below

您的帮助将不胜感激!谢谢!

Your help would be appreciated! thank you!

推荐答案

使用 cardView 并获得角半径的好处.然后将您的cardView与其他布局重叠

use cardView and get benefit of corner radius. then overlap your cardView with other layout

这篇关于如何在布局中制作像Google一样的缺口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆