Skip to content

Commit 66dcb33

Browse files
committed
Update README.md
1 parent e3cc80c commit 66dcb33

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222
```
2323

2424
## How to use
25-
![Sheet Selection](screenshot/ss_1.png)
25+
![Sheet Selection](screenshot/ss_1_0.0.2.png)
2626

2727
``` kotlin
2828
val items = listOf(
@@ -37,6 +37,7 @@ SheetSelection.Builder(context)
3737
.items(items)
3838
.selectedPosition(2)
3939
.showDraggedIndicator(true)
40+
.searchEnabled(true)
4041
.onItemClickListener { item, position ->
4142
// DO SOMETHING
4243
}
@@ -47,6 +48,7 @@ SheetSelection.Builder(context)
4748
- Set items by `Builder.items(List<SheetSelectionItem>)`.
4849
- Set selected item by `Builder.selectedPosition(Int)`. default is `SheetSelection.NO_SELECT`
4950
- Show dragged indicator by `Builder.showDraggedIndicator(Boolean)`. default is `false`
51+
- Set search enabled by `Builder.searchEnabled(Boolean)`. default is `false`
5052
- Set custom theme by `Builder.theme(@StyleRes)`.
5153
- To handle the item click listener by `Builder.onItemClickListener()`.
5254

app/src/main/java/com/minibugdev/sheetselection/demo/MainActivity.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ class MainActivity : AppCompatActivity() {
1717
SheetSelectionItem("1", "Item #1", R.drawable.ic_extension),
1818
SheetSelectionItem("2", "Item #2", R.drawable.ic_nature),
1919
SheetSelectionItem("3", "Item #3", R.drawable.ic_fingerprint),
20-
SheetSelectionItem("4", "Item #4", R.drawable.ic_face)
20+
SheetSelectionItem("4", "Item #4", R.drawable.ic_face),
21+
SheetSelectionItem("5", "Item #5", R.drawable.ic_extension),
22+
SheetSelectionItem("6", "Item #6", R.drawable.ic_fingerprint)
2123
)
2224

2325
SheetSelection.Builder(this)

screenshot/ss_1.png

-23.4 KB
Binary file not shown.

screenshot/ss_1_0.0.2.png

28.4 KB
Loading

0 commit comments

Comments
 (0)