Is there any way to trigger the SwipeRefreshLayout programmatically? The animation should start and the onRefresh method from the OnRefreshLi
SwipeRefreshLayout
onRefresh
OnRefreshLi
binding.swipeRefreshLayout.setRefreshing(true); // show loading binding.swipeRefreshLayout.post(this::updateUI); // call method binding.swipeRefreshLayout.setOnRefreshListener(this::updateUI); // call method