How to properly reload liveData manually in Android?
问题 My app is a basic news app which fetches data from JSON provided by Guardian API. I parsed the values from JSON using raw java code (not using retrofit). Then I get the LiveData in NewsFeedViewModel class which extends as AndroidViewModel. And then in the fragment, I submit list to adapter. These are the issues I'm facing: 1) at first, if the articles to show is set to 10, then if i go to settings and change it to 2, then the last 8 articles are disappearing but the white space /gap is not