Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-megh-l authored Feb 20, 2024
1 parent 801f238 commit 5191a5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

# ComposeRecyclerView

**ComposeRecyclerView** enables seamless integration of Jetpack Compose composables within traditional RecyclerView.
This library addresses performance concerns and resolves issues commonly faced in Compose LazyList implementations.
It comes with built-in support for drag-and-drop functionality, making it a versatile solution for dynamic UIs.

![Blue Pink Gradient Fashion Banner (1)](https://github.com/canopas/compose-recyclerview/assets/98312779/f94d451f-f3f7-4920-91b4-c9417ee97be9)
![ComposeRecyclerView](https://github.com/canopas/compose-recyclerview/assets/98312779/5d34dce0-dc5d-44ee-86fe-e0540bdbe753)



## Benefits
Expand Down Expand Up @@ -40,7 +40,7 @@ Use the ComposeRecyclerView composable to create a RecyclerView with dynamically
```
ComposeRecyclerView(
modifier = Modifier.fillMaxSize(),
itemCount = yourTotalItemCount,
items = yourTotalItems, // Combination of lists in case of multiple items
itemBuilder = { index ->
// Compose content for each item at the specified index
// Similar to Flutter's ListView.builder() widget
Expand Down Expand Up @@ -138,7 +138,7 @@ class MainActivity : ComponentActivity() {
ComposeRecyclerView(
modifier = Modifier.fillMaxSize(),
itemCount = 1 + userDataList.size + 1 + otherUsersDataList.size,
items = listOf(1) + userDataList + listOf(1) + otherUsersDataList,
itemBuilder = { index ->
if (index == 0) {
Box(
Expand Down

0 comments on commit 5191a5a

Please sign in to comment.