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.
有没有办法像 V3 一样方便地添加阴影?否则,我的解决方案是将另一个标记添加到同一位置,其图标是原始标记图标的阴影..并禁用点击侦听器..但这似乎很糟糕。任何想法?提前致谢!:)
创建一个Bitmap包含标记及其阴影的文件,并使用BitmapDescriptorFactory.fromBitmap或简单地创建一个包含您需要和使用的所有内容的 png 文件来分配它BitmapDecriptorFactory.fromResource。
Bitmap
BitmapDescriptorFactory.fromBitmap
BitmapDecriptorFactory.fromResource