我开始在Android应用程序上自定义圆形窗口小部件。通过将回收站视图转换为弯曲形状,我得到了与我的要求相似的东西。但问题是多层相互重叠。如何使图层独立可点击。请帮帮我。预先感谢。
look at this This is how recycler views are overlapping each other
在可绘制文件中使用它。这将是正确的曲线。
<?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>