title: How to scroll 3 listviews in different fragment at the same time?
body: <p>I have 3 ListViews in one layout but in 3 different fragments. I want, when i scroll down, to first load the first listview  and the other two listviews to scroll background at same the time when 1 change fragment same position
      display at 2nd and 3rd fragment i loaded listview from database. 
  <a href="https://i.stack.imgur.com/EBwpE.png" rel="nofollow noreferrer">Pic of 1st fragment</a></p>
  
  <pre><code>//first fragment code
  
  public class Quran extends Fragment {
  
      ListView quranlst;
      Parcelable state;
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  
  
          return inflater.inflate(R.layout.activity_quran, container, false);
      }
  
  
      public void onViewCreated(View view, Bundle savedInstanceState) {
          super.onViewCreated(view, savedInstanceState);
  
          quranlst = (ListView) getActivity().findViewById(R.id.quranlist);
          DatabaseAccess db = DatabaseAccess.getInstance(getActivity().getApplicationContext());
  
          Intent it = getActivity().getIntent();
  
  
  
  
          int p = it.getIntExtra("paya", 0);
          int i = it.getIntExtra("saya", 0);
  
          if (i != 0) {
  
  
              List&lt;String&gt; lstsa;
              db.open();
              lstsa = db.getsaya(i);
  
              db.close();
  
  
  
              MyCustomAdapter adapter = new MyCustomAdapter(lstsa, Quran.this.getActivity());
  
  
  
              quranlst.setAdapter(adapter);
  
          } else if (p != 0) {
  
              List&lt;String&gt; lstpa;
              db.open();
              lstpa = db.getpaya(p);
              db.close();
  
  
  
              MyCustomAdapter adapter = new MyCustomAdapter(lstpa, Quran.this.getActivity());
  
              //handle listview and assign adapter
  
              quranlst.setAdapter(adapter);
  
          }
  
  
      }
  
  
  
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/O14kJ.png" rel="nofollow noreferrer">pic of Second fragment</a>
       <strong>that is my 2nd fragment code</strong> </p>
  
  <pre><code>public class englisht extends Fragment {
  
      ListView el;
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  
  
          return inflater.inflate(R.layout.activity_englisht, container, false);}
  
  
  
  
      public void onViewCreated(View view, Bundle savedInstanceState) {
          super.onViewCreated(view, savedInstanceState);
  
  
          el = (ListView) view.findViewById(R.id.englishlst);
  
  
          DatabaseAccess db = DatabaseAccess.getInstance(getActivity().getApplicationContext());
  
          Intent it = getActivity().getIntent();
  
  
  
  
          int i = it.getIntExtra("saya", 0);
          int p = it.getIntExtra("paya", 0);
  
          if (i != 0) {
              List&lt;String&gt; lstenglishsurah;
              db.open();
              lstenglishsurah = db.geteaya(i);
              db.close();
  
  
              ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(getActivity(),  R.layout.mytextview, lstenglishsurah);
              el.setAdapter(adapter);
  
  
          } else if (p != 0) {
  
              List&lt;String&gt; lstenglishparah;
              db.open();
              lstenglishparah = db.paraheng(p);
              db.close();
  
  
              ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(getActivity(),  R.layout.mytextview, lstenglishparah);
              el.setAdapter(adapter);
  
  
          }
      }
  }
  
  
  
  **that is my third fragment code**
  public class urdut extends Fragment {
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  
          //Returning the layout file after inflating
          //Change R.layout.tab1 in you classes
          return inflater.inflate(R.layout.activity_urdut, container, false);}
  
  
  
  
      ListView urdulst;
  
  
  
  
      public void onViewCreated(View view, Bundle savedInstanceState) {
          super.onViewCreated(view, savedInstanceState);
  
  
          urdulst = (ListView) view.findViewById(R.id.urdulst);
  
  
          DatabaseAccess db = DatabaseAccess.getInstance(getActivity().getApplicationContext());
  
          Intent it = getActivity().getIntent();
  
  
          //SurahAyat
  
          int i = it.getIntExtra("saya", 0);
          int p = it.getIntExtra("paya", 0);
  
          if (i!=0) {
              List&lt;String&gt; lsturdusurah;
              db.open();
              lsturdusurah = db.getuaya(i);
              db.close();
  
  
              ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(getActivity(), R.layout.mytextview, lsturdusurah);
              urdulst.setAdapter(adapter);
  
          }
          else if (p!=0) {
  
  
              List&lt;String&gt; lsturduparah;
              db.open();
              lsturduparah = db.parahurdu(p);
              db.close();
  
  
              ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(getActivity(),  R.layout.mytextview, lsturduparah);
              urdulst.setAdapter(adapter);
  
          }
  
      }
  
  }
  </code></pre>