Comments (8)
Hi @mhrastegary77 thanks for your interest and feedback! This is still pretty much in beta and I'm sorry you got such a result. I should say it worked for my case with the icons, but I had them only in menus with a single row. Which size of the icon did you used on UWP?
from contextmenucontainer.
I think it could be a problem with the ResizetizerNT as I'm testing it with SVG or pre rendered PNGs for all DPI and it looks fine. Looking at the ResizetizerNT docs it seems that you have to specify size request for the XF Image in order for it to work, but I don't use XF image for icons here, it is handled directly in the platform implementation (so you just bind FileImageSource, not the actual Image). I guess as a workaround you can try to specify a native Image using same asset somewhere outside of ContextMenuItem, so ResizetizerNT will handle it properly.
from contextmenucontainer.
In the provided sample it has multiple icons on Android. If you can post a repro where it doesn't show multiple icons on Android I can further investigate it. Otherwise I suggest you check that your icons have proper names on Android and they are located in the drawable folder.
from contextmenucontainer.
Hi Pavel first of all you have a really nice work here i love this package!!!
and i used a shared 513*513 image with ResizetizerNT on all of my platforms.
from contextmenucontainer.
Hmm yeah you were right!!! Once I set a baseSize like 20 for my images it looks fine on UWP and Android now too but still on the Android only the first item has icon and others doesn't have any.
from contextmenucontainer.
Can you post a sample of how you reference icons? On screenshots in the first post I can see icons only on the first item for all four platforms
from contextmenucontainer.
in the screenshot it is one icon! And in one of my projects I just seeing Android doesn't have the second icon but others like iOS and UWP are fine
from contextmenucontainer.
yup! you were right my icons should be located in the drawable folder cant't use shared image on android, it's fixed thanks.
from contextmenucontainer.
Related Issues (6)
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 contextmenucontainer.