-
Notifications
You must be signed in to change notification settings - Fork 59
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
How to use an "icon name included in the project" for the action image #331
Comments
You can find all the icons on Hotpot.
Then to select an Icon, just click it, this copies the icon name to your clipboard. Here's an example to get the Safari (Browser) icon, for iOS only.
Hope this answers your question 😁 |
Thanks @kayode0x. Sorry, I wasn’t clear enough - I know about using SF Symbols and Material Design icons. The readme implies that you can alternatively use an “icon name that is included in the project” - or am I misreading it? Thanks |
it is not working for android |
Hi there, I'm experiencing the same issue as @hanishbasheer, my android icons are not working (they are working on iOS) It simply doesn't render any image even using the example code in the docs |
Same issue on android |
Same for me, for android: Using eg 'ic_menu_add' works and gives me a plus sign in a circle. But none of the names for android on Hotspot work in the code. And none of the icons for android on Hotspot seem to be named 'ic_menu_add'. So it looks like the code is using a different set of icon names for android than Hotspot is. Where do I find the list of icon names, and their images, that work in this code? |
@willxy you need to add the icons via android studio In Android Studio, right-click on the “drawable” folder and select “New” » “Vector Asset”. |
Thanks this helped. |
This kinda worked for me but instead of using right-click on the "drawable" folder, I clicked on the "Resource Manager" tab on the left and then clicked the plus button and selected Vector Asset. |
For those wondering, the default icons present for android can be found here (those that don't need an extra-install step): https://developer.android.com/reference/android/R.drawable For instance: |
Hi, it says in the README:
Does it mean you add the icon to the native project, and then you can refer to it? How do you do this?
Thanks
The text was updated successfully, but these errors were encountered: