sectionedrecyclerviewadapter

wrong section TAG value

风格不统一 提交于 2020-01-07 04:38:07
问题 I'm try to remove some rows from section one and some from section two, but sectionAdapter.notifyItemRemovedFromSection(TAG, key); TAG always return the 2st section list string TAG, but I was selected row in first list here is full class code: class ContactsSection extends StatelessSection { final String TAG; String title; List<Item> list; ItemViewHolder row; HeaderViewHolder MainRow; ContactsSection(String title, ArrayList<Item> list) { super(R.layout.shopping_row_item_header, R.layout

can not handle delete multiple selection in sectioned recyclerview

我怕爱的太早我们不能终老 提交于 2019-12-13 09:26:26
问题 I'm using sectioned RecycleView library from here : https://github.com/luizgrp/SectionedRecyclerViewAdapter but what I try to do is when select some multi check box from section 1 and section two and hit remove button , the sectionAdapter.notifyItemRemoved(key); dose not do anything . the view or row is the same , it should be updated and remove the selected row what is the best implementation for this case to use? remove function code: private void getDishesIngredientsShoppingList() {