title: The RecyclerView automatically refresh(invalidate) itself when I add a view
body: <p>　　My situation is a bit special, because I use windowManager to drawOverLay instead of the normal method. And I encounter a problem that, I have a recyclerView in a framlayout(called rootlayout), and when I add a new view to the rootlayout, the recyclerView in it will blink once and scroll back to the top(it seems like it invalidate itself). Doesn't anyone has any idea about this situation? Thanks</p>
  
  <p>this is the code which I add bottom sheet(the new layout)</p>
  
  <pre><code>private void showSelectionLayout(String title, List&lt;String&gt; options){
      selectionLayout = (RelativeLayout) layoutInflater.inflate(R.layout.layout_bottom_sheet, rootLayout, false);
      sheetContent = (LinearLayout)selectionLayout.findViewById(R.id.sheet_content);
      RecyclerView sheetList = (RecyclerView) selectionLayout.findViewById(R.id.sheet_recycleView);
      sheetCancel = (HeadlineView)selectionLayout.findViewById(R.id.sheet_cancel);
      HeadlineView sheetTitle = (HeadlineView) selectionLayout.findViewById(R.id.sheet_title);
  
      ScreenUtils.applyDim(selectionLayout);
      sheetContent.setVisibility(View.GONE);
      sheetCancel.setVisibility(View.GONE);
      selectionLayout.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
          @Override
          public void onGlobalLayout() {
              selectionLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this);
              final Animation slideUp = AnimationUtils.loadAnimation(
                      getContext(), R.anim.abc_slide_in_bottom
              );
              slideUp.setDuration(SHEET_EXPAND_DURATION);
              sheetContent.setVisibility(View.VISIBLE);
              sheetCancel.setVisibility(View.VISIBLE);
              sheetContent.startAnimation(slideUp);
              sheetCancel.startAnimation(slideUp);
          }
      });
  
      selectionLayout.setOnClickListener(view -&gt; dismissSelectionLayout());
      sheetCancel.setOnClickListener(view -&gt; dismissSelectionLayout());
      sheetTitle.setText(String.format(SharedConstants.CONTACT_TITLE, title));
  
      SheetAdapter adapter = new SheetAdapter(options);
      adapter.setItemClickListener(option -&gt; {
          dismissSelectionLayout();
      });
      LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());
      sheetList.setAdapter(adapter);
      sheetList.setLayoutManager(layoutManager);
      TransitionManager.beginDelayedTransition(rootLayout);
      rootLayout.addView(selectionLayout);
  }
  </code></pre>