How can I make the listview soda appear first and then the List is loaded?
This is my code.
And this my result
make the listview soda appear first and then the List is loaded
What's the soda, could you post more details about that?
If you mean to pull To refresh the ListView. Here is a tutorial you can refer to.https://xamarinhelp.com/pull-to-refresh-listview/
ListView
I think what he means is that a loader should be shown while the data is loading.
If that's the case, see my answer here:https://forums.xamarin.com/discussion/comment/398104#Comment_398104
@MarcDieters
Exactly, I want the charger to be displayed first while the list is loading.
Do you mean display the refreshing icon first? Try to set the ListView's ItemsSource to null and reset the value after refershing data.
public ICommand RefreshCommand { get { return new Command(async () => { //set the itemsSource to null IsRefreshing = true; await RefreshData(); IsRefreshing = false; }); } }
Answers
What's the soda, could you post more details about that?
If you mean to pull To refresh the
ListView
. Here is a tutorial you can refer to.https://xamarinhelp.com/pull-to-refresh-listview/
I think what he means is that a loader should be shown while the data is loading.
If that's the case, see my answer here:
https://forums.xamarin.com/discussion/comment/398104#Comment_398104
Exactly, I want the charger to be displayed first while the list is loading.
Do you mean display the refreshing icon first? Try to set the
ListView
's ItemsSource to null and reset the value after refershing data.