private void initList(){
  mList=new ArrayList<>();
  for (int i=0; i < names.length; i++) {
    mList.add(new Item(images[i],names[i],textDescription));
  }
  mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
  myAdapterRecyclerView=new MyAdapterRecyclerView(mList);
  mRecyclerView.setAdapter(myAdapterRecyclerView);
  ItemTouchHelper.Callback callback=new MyItemTouchHelperCallback(this);
  ItemTouchHelper touchHelper=new ItemTouchHelper(callback);
  touchHelper.attachToRecyclerView(mRecyclerView);
}

private void initList ( ) { mList = new ArrayList < > ( ) ; for ( int i = 0 ; i < names . length ; i ++ ) { mList . add ( new Item ( images [ i ] , names [ i ] , textDescription ) ) ; } mRecyclerView . setLayoutManager ( new LinearLayoutManager ( this ) ) ; myAdapterRecyclerView = new MyAdapterRecyclerView ( mList ) ; mRecyclerView . setAdapter ( myAdapterRecyclerView ) ; ItemTouchHelper . Callback callback = new MyItemTouchHelperCallback ( this ) ; ItemTouchHelper touchHelper = new ItemTouchHelper ( callback ) ; touchHelper . attachToRecyclerView ( mRecyclerView ) ; }
add data to the list
