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

Android ListView Event

$
0
0

Hi everyone,

I recently created a custom renderer for Android ViewCell because as you already know, there isn't an Android ListViewRenderer. I had to do an automatic scroll to bottom, so i just used the viewcell renderer and grabbed the list with the parent property from the viewcell, and attached an event to do the scroll.

My main problem is that i can't find the suitable event that is triggered when the list is updated. For the moment, i attached my callback to an Event (can't remember which one) but it seems like my callback is called everytime a cell is rendering, not just when the list is updated. (So basically, when you scroll manually to the top, it scrolls to the bottom).

So i wonder what is the Android ListView or Adapter Event which means the datasource has updated, as ItemSourceChanged on WP ?

I checked on the web but i only find event about ItemClicked, nothing about the list content updates.

Thanks,

Best regards,

Armand


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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