Comments (6)
Side note by @nickbutcher: https://medium.com/androiddevelopers/understanding-androids-vector-image-format-vectordrawable-ab09e41d5c68
Why not SVG?
If you’ve ever worked with vector image formats, you’ll likely have come across the SVG format (Scalable Vector Graphics), the industry standard on the web. It is capable and mature with established tooling, but it’s also a vast standard. It includes many complex capabilities like executing arbitrary javascript, blur and filter effects or embedding other images, even animated gifs. Android runs on constrained mobile devices so supporting the entirety of the SVG spec wasn’t a realistic goal.
SVG does however include a path spec which defines how to describe and draw shapes. With this API you can express most vector shapes. This is essentially what Android supports: SVG’s path spec (plus a few additions).
from compose-multiplatform.
SVG support isn't implemented for Android because it doesn't support SVG natively. The main focus of this support is desktop-only and desktop/web applications.
For Multiplatform projects with Android target, XML vector drawables should be used.
from compose-multiplatform.
Supporting SVG for Android isn't trivial, but possible. Let's keep this issue open.
from compose-multiplatform.
Coil is using this library to render svg on Android https://github.com/BigBadaboom/androidsvg
Maybe you can add something similar to it to the resources library just for android.
from compose-multiplatform.
That library seems abandoned
from compose-multiplatform.
Why close this? Igor asked to keep the issue open
from compose-multiplatform.
Related Issues (20)
- IOS Material3 ripple increases button size on click HOT 2
- Change visibility of helper functions (Resources) HOT 1
- Using scss in compose multiplatform HOT 1
- Failed to load native library:libjansi.jnilib. HOT 4
- iOS: Bottom sheet content isn't fully visible when keyboard is shown HOT 3
- Scroll functionality in LWJGL example causes unexplained freeze HOT 6
- Desktop window not capturable after upgrade from Compose 1.5 to 1.6 HOT 3
- Compose resources fail in Android Studio preview HOT 4
- How can I set shortcuts' name that different with packageName HOT 4
- [Desktop] Can't capture native inputs in windows using windowHandle HOT 4
- CupertinoOverscrollEffect keeps LazyColumn offseted up even more items are added in
- TextFiled Cursor Issues HOT 1
- iOS. Crash when exceeding some height value in vertically scrollable content of ModalBottomSheet HOT 1
- Compose Resource incorrectly reads string chunks from a file
- Add androidx.lifecycle.compose.LifecycleEventEffect HOT 2
- Make `SwingPanel` interop blending by default
- Ress Class name - Compose multiplatform resources HOT 1
- Compose layout system doesn't handle `additionalSafeAreaInsets` correctly. HOT 1
- Crash when using `rememberWindowState`: DpSize is unspecified
- Documentation on moving existing Android & IOS production app to KMP state
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compose-multiplatform.