Comments (7)
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.
@JosueMartinez @aquisio Did you guys figure it out? I'm still facing this problem.
from xamarin.plugins.
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.
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.
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.
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.
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)
- UWP: MasterDetailPage and IconToolbarItem can't work together.
- Unable to set global styles HOT 1
- Is it possible to add gesture to the image icon? HOT 1
- MTOUCH : error MT3001: Could not AOT the assembly - How do I resolve?
- Feather icons support
- IconToolBarItem disappeares when command's canExecute changes
- Adding Medical icons
- Fontawesome 5.0 support
- Fontawesome is not rendering in IOS
- Can't install with latest .net framework HOT 1
- Fontawesome Pro Collection HOT 1
- .NET Standard support? HOT 2
- Exception has been thrown by the target of an invocation. Invalid Cast Exception
- Binding Is Not Functional? HOT 1
- Support for Forms 3.0? HOT 3
- Unable to toggle visibility on IconToolbarItem
- IconToolbarItems not refreshed properly
- IconToolbarItem in ViewCell.ContextActions
- Compile app iOs in MacBook
- [CRITICAL] - repository out of date! Last commit 2 years ago - latest nuget 3 days ago!! HOT 2
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 xamarin.plugins.