は私はわからない:
RecylerView recycler = findViewById(R.id.recyclerInActivity);
//now create a GridLayoutManager
GridLayoutManager gridLayoutManager = new GridLayoutManager(this);
//set the gridLayoutManager's spanCount to 3 for 3 columns:
gridLayoutManager.setSpanCount(3);
//Now create your custom Adapter with an XML layout with a button and set the adapter
recycler.setAdapter(myCustomAdapter);
//When a view is removed, remove it from the data supply (e.g. arrayListOfData.remove(indexOfRemovedItem)) of the RecylerView.Adapter and then call:
myCustomAdapter.notifyItemChanged(indexOfRemovedItem);
をRecyclerViewのRecyclerViewのレイアウトを確保するアニメーションに新しい項目数に適応建て