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.
我希望根据用户输入在运行时构建矢量图像,然后尽快将其放入 ImageView 中。
我已经尝试过 VectorDrawable,但它需要在应用程序启动之前拥有 xml,而且我没有找到在运行时使用它的合法方式。
所以我正在寻找一些 android 内置工具来在运行时构建 svg 或 VectorDrawable 而无需在存储中创建文件。有人有想法吗?
谢谢!
据我所知,向量不能在运行时创建!必须有一个用于使用向量的 xml 文件。