Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

RecyclerView. Missed views or zero frame.

$
0
0

Hello!
I'm working with optimization of ListView. I replaced the ListView to RecyclerView and implemented all needed abstract/virtual methods. Currently list of items is rendering and almost stuff is working.
I have an issue with Views (for example, Label) which have only LayoutOptions, see example below:


var label = new ExtendedLabel {
HorizontalOptions = LayoutOptions.StartAndExpand,
VerticalOptions = LayoutOptions.CenterAndExpand,
Text = text
};

That label not rendered. In CustomCellRenderer I can get access to it, Width/Height values is -1 in this case.
If I set Width/HeightRequest to this label - everything works good.

Could you please help me understand this behavior.


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>