如何在android中实现圆形菜单

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

我开始在Android应用程序上自定义圆形窗口小部件。通过将回收站视图转换为弯曲形状,我得到了与我的要求相似的东西。但问题是多层相互重叠。如何使图层独立可点击。请帮帮我。预先感谢。

look at this This is how recycler views are overlapping each other

the expected design looks like this

android android-layout android-recyclerview android-custom-view circular-dependency
1个回答
0
投票

在可绘制文件中使用它。这将是正确的曲线。

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <solid android:color="@color/colorPrimary" />
    <corners android:topRightRadius="150dp" />
</shape>
© www.soinside.com 2019 - 2024. All rights reserved.