Giter Site home page Giter Site logo

Comments (8)

anpin avatar anpin commented on May 27, 2024 1

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.

anpin avatar anpin commented on May 27, 2024 1

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.

anpin avatar anpin commented on May 27, 2024 1

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.

mhrastegari avatar mhrastegari commented on May 27, 2024

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.

mhrastegari avatar mhrastegari commented on May 27, 2024

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.

anpin avatar anpin commented on May 27, 2024

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.

mhrastegari avatar mhrastegari commented on May 27, 2024

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

image

from contextmenucontainer.

mhrastegari avatar mhrastegari commented on May 27, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.