Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Updating ListView in a custom renderer

$
0
0

I have a problem when I am creating a custom renderer on android for a ListView. The renderer is a ViewRenderer<ListView, ListView>. Then in OnElementChanged create an instance of Android.Widgets.ListView, set its adapter and go. Everything is fine except if I don't provide ItemsSource at OnElementChanged time. If I set those later on (I assign a new Adapter to ListVIew) nothing is shown. I assume that's happening because ListView is initially shrinked and later on it doesn't detect the new size. Any idea?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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