Git Product home page Git Product logo

Comments (7)

aquisio avatar aquisio commented on August 18, 2024 1

I'm also seeing this problem. Typically the first page, with 1 or more toolbar icons, is rendered correctly. If the app navigates to a nested page (pushed onto the navigation stack) it also renders its icons correctly, but when the nested page is popped, the original page is sometimes re-rendered with it's toolbar icons missing and the "Could not load image" message is logged.

This behaviour inconsistent. Forward navigation appears to always render icons correctly and sometimes backwards navigation rendering also works, but not always. I haven't seen a consistent failure pattern.

Note that it is only the rendering of the icon that is problematic. The actual toolbar buttons are always functional, even when their icons are missing.

from xamarin.plugins.

marlonribeiro01 avatar marlonribeiro01 commented on August 18, 2024 1

@JosueMartinez @aquisio Did you guys figure it out? I'm still facing this problem.

from xamarin.plugins.

jsmarcus avatar jsmarcus commented on August 18, 2024

Are you using an IconNavigationPage as your nav page to show the icons? If not they won't show. You can inherit from it but if you create a custom renderer for your inherited navigation page you will need to inherit the renderer as well.

from xamarin.plugins.

thawatchai avatar thawatchai commented on August 18, 2024

Oh, I missed it from the sample.

However, after I've changed NavigationPage to IconNavigationPage, a System.InvalidCastException was thrown with the error Specified cast is not valid.

The app was working fine and no other thing has been changed except the class above.

Please help. Thank you very much. 😄

from xamarin.plugins.

tomasjuricek avatar tomasjuricek commented on August 18, 2024

Have the same problem: System.InvalidCastException: Unable to convert instance of type 'Android.Support.V7.Widget.AppCompatTextView' to type 'Android.Support.V7.Widget.Toolbar'.

from xamarin.plugins.

jsmarcus avatar jsmarcus commented on August 18, 2024

This is due to missing info in the documentation. I will get that fixed today. When initializing the IconControls on Android the id of the toolbar and tab bar (if you are targeting either one) is needed.

FormsPlugin.Iconize.Droid.IconControls.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs);

from xamarin.plugins.

JosueMartinez avatar JosueMartinez commented on August 18, 2024

I'm still experiencing this problem even after adding what you say @jsmarcus . I'm also with the situation that it doesn't work when I click a toolbar item, works fine in Xamarin.iOS. These problems are only in Android

from xamarin.plugins.

Related Issues (20)

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.