title: RecyclerView adapter update in handler
body: <p>I am new in android development. My application have timer like 8sec , 7sec ,6sec and so on...  So i have put time in model class and using handler i am updating that model class value on every sec secondly i have to update my recycler view.. Here my code (till now i have tried this below)</p>
  
  <pre><code>  public void startTimerUpdate() {
  
          handler = new Handler();
          runnable = new Runnable() {
              @Override
              public void run() {
                  Gson gson = new Gson();
                  Type type = new TypeToken&lt;ArrayList&lt;ProductDetail&gt;&gt;() {
                  }.getType();
                  arrayList = gson.fromJson(ReadSharePrefrence(getActivity(), ALLPRODUCT), type);
                  Log.d("UpdateTime", getTimeInCounter(arrayList.get(0).getCounter()));
  
                  recyclerAdapter.notifyDataSetChanged();
                  handler.postDelayed(runnable, 1000);
              }
          };
          handler.postDelayed(runnable, 1000);
      }
  </code></pre>
  
  <p>but at a every second i am getting 'UpdateTime' perfectly in my log but recyclerView is not updating. </p>
  
  <p>Guide me </p>
  
  <p>yes , i had bind arraylist to recyclerview adpater here is code.</p>
  
  <pre><code>   recyclerAdapter = new HomeRecyclerAdapter(getActivity(), arrayList, getActivity().getSupportFragmentManager());
          RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());
          recyclerView.addItemDecoration(new SimpleDividerItemDecoration(getActivity()));
          recyclerView.setLayoutManager(mLayoutManager);
          recyclerView.setItemAnimator(new DefaultItemAnimator());
          recyclerView.setAdapter(recyclerAdapter);
  </code></pre>