Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用drawable5 像素的蓝色描边和透明填充创建一个圆形。
drawable
我将把它传递drawable给一个ItemizedOverlay.
ItemizedOverlay
我想用代码做到这一点,我会知道圆的半径。
尝试以下方式:
<shape xmlns:android="http://schemas.android.com/apk/res/android" type="OvalShape" > <stroke android:width="5dp" android:color="#99104E8B"/> .... </shape>
只需将类似这样的内容放入可绘制目录中的 XML 文件中,然后像加载普通图像一样加载它。
请参阅 Android 文档中的 ShapeDrawable。