title: How to update a Fragment View in Android without changing the current state of the view?
body: <p>Whenever I click on a refresh button on my fragment and get new set of data, I call this function:</p>
  
  <pre><code>public void updateView(User user){
          LinkAdapter linkList = new LinkAdapter(getActivity(),R.layout.link_list,user.links, getActivity());
          linkCardView.setAdapter(linkList);
  
  
      }
  </code></pre>
  
  <p>This updates the view with new set of links at the top of it, and also drags the view up to the top to show the new links that have been added. </p>
  
  <p>My only problem is I don't want the dragging up to happen. Say the user has scrolled to position B in a listView and then refreshes which results in new data added to the top of the listView, the current View state shouldn't be altered automatically. How do I stop this from happening?</p>