You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've rebased on top of XF2, but it seems that Navigation Layout's Header is not showing up in my app or the demo. I can see it being added to the control in NavigationLayoutRenderer.UpdateHeaderView. Anyone have any suggestions on where to look?
The text was updated successfully, but these errors were encountered:
I can manually add native Views in the renderer, and they show up. But not when I try to GetNativeView() from the HeaderView in NavigationLayoutRenderer.cs. It seems to be some kind of interaction with XF and native Views. Also, this might be related: https://code.google.com/p/android/issues/detail?id=190226
Huzzah! The issue is that in UpdateHeaderView, the (possibly) nested controls that are supposed to go in the Header, aren't converted to native fully, or the hierarchy of native controls isn't set up or something.
This seems to work: var header = this.Element.HeaderView.GetNativeView(); var temp = Element.HeaderView.Content.GetNativeView(); LinearLayout llc = new LinearLayout(Forms.Context) { LayoutParameters = new LayoutParams(LinearLayoutCompat.LayoutParams.MatchParent, 400) }; temp.RemoveFromParent(); llc.AddView(temp); this.Control.AddHeaderView(llc);
I've rebased on top of XF2, but it seems that Navigation Layout's Header is not showing up in my app or the demo. I can see it being added to the control in NavigationLayoutRenderer.UpdateHeaderView. Anyone have any suggestions on where to look?
The text was updated successfully, but these errors were encountered: