android shape xml标签中的useLevel属性的目的是什么?这是关于layer-list的,但不应该有影响。从文档中找到了useLevel标签的含义:
所以如果我有以下xml片段:指示可绘制对象的级别是否会影响渐变的绘制方式。
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="ring"
android:innerRadius="15dp"
android:thickness="10dp"
android:useLevel="false">
<solid android:color="#ababf2" />
<size
android:height="50dp"
android:width="50dp" />
</shape>
使用useLevel=true时,环形菜单会被禁用。它必须为false才能显示环形菜单。但是这个属性的目的是什么?文档没有明确说明。