는 잘 모르겠어요 :
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의 레이아웃을 보장합니다 애니메이션에 새 항목 수에 적응 내장