Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release of icons with android library #289

Open
elax46 opened this issue Mar 4, 2024 · 8 comments
Open

Release of icons with android library #289

elax46 opened this issue Mar 4, 2024 · 8 comments

Comments

@elax46
Copy link

elax46 commented Mar 4, 2024

Hi, I wanted to know if you were planning to release the icons via library that can be implemented in Android applications. This question arises from the fact that I want to implement icons within wear OS but not having WebViews support they are not displayed. the only way is to implement a library that can allow them to be added

@cyberalien
Copy link
Member

I don't know anything about Android development, so don't know what format is used, how to convert it, what part of SVG can be converted and so on.

@userquin
Copy link
Collaborator

userquin commented Mar 4, 2024

@cyberalien I guess it is about creating vector assets using svg (using local file in the wizard below)

@elax46 this is something you need to build, iconify is about svg and html, maybe we can check how to build a kotlin snippet via jetpack compose api for svg: md3 has something similar for the md3 theme here https://m3.material.io/theme-builder#/custom (check export button in the top navbar)

There is a figma plugin here but not tested yet: https://www.figma.com/community/plugin/1034969338659738588/material-theme-builder

imagen

@cyberalien
Copy link
Member

It should be automated, wizard cannot be used.

@userquin
Copy link
Collaborator

userquin commented Mar 4, 2024

@cyberalien yeah, this is a wizard inside Android Studio (check screenshot below): with the new UI (jetpack compose), there are some api to build the new ui stuff without xml like on the export button with the md3 theme.

IIRC, the figma plugin should have an utility to export kotlin stuff for the md3 theme and so if we can add svg images there, the kotlin code should be also there. OFC, you need figma (I have no idea if the figma plugin will allow to add svg images, I think it should), otherwise we need to create the corresponding kotlin code...

imagen

@userquin
Copy link
Collaborator

userquin commented Mar 4, 2024

@cyberalien
Copy link
Member

Nice. So it might be possible.

@elax46
Copy link
Author

elax46 commented Mar 4, 2024

Yes, I know how Android Studio works and how to integrate files, I need to study better how to create a library that can be updated dynamically or automatically

@userquin
Copy link
Collaborator

userquin commented Mar 4, 2024

There are a few icons in the compose library: https://material.io/blog/jetpack-compose-beta

We need to check the source code of those libraries: https://fonts.google.com/icons?selected=Material+Icons:fingerprint:&icon.platform=android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants