且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何创建一个圆圈绘制?

更新时间:2023-02-09 20:17:36

尝试沿着线的东西:

<shape xmlns:android="http://schemas.android.com/apk/res/android" 
       type="OvalShape" >
   <stroke android:width="5dp" android:color="#99104E8B"/>
   ....
</shape>

只要把这样的事情在一个XML文件中可绘制你的目录,并加载它,你会一个正常的图像。

Just put something like this in an XML file in you drawables directory and load it as you would a normal image.

请参阅ShapeDrawable在Android文档。

See ShapeDrawable in the Android Docs.