jmartinesp / SpannedGridLayoutManager

Android RecyclerView.LayoutManager that resizes and reorders views based on SpanSize
MIT License
600 stars 105 forks source link

add the data of the adapter later, the position of the item is bottom #36

Closed sikeeoh closed 5 years ago

sikeeoh commented 5 years ago

I have not already added the item status 2018-11-29 3 00 08

add item 2018-11-29 3 00 22

add item code

view1.setOnClickListener {
            adapter.clickedItems.clear()
            adapter.notifyDataSetChanged()
            for (i in 1..100) {
                adapter.clickedItems.add("hi")
            }
        adapter.notifyDataSetChanged()}
}

However, scrolling return the item to its normal position. 2018-11-29 2 59 53