我正在尝试将Framelayout变成圆形。当我搜索时,得到了一些关于制作xml文件的建议。我已经做了,并把它作为我的xml文件放在FrameLayout的背景中。 但是没有效果。我的环形形状的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" />
</shape>
我尝试了所有的环形和椭圆形。都无法正常工作。请帮助我解决这个问题。