Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakariaJawas committed Apr 13, 2020
2 parents a0d042d + 01c6e67 commit d8f729d
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 6 deletions.
51 changes: 45 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

![Tag](https://img.shields.io/github/v/tag/ZakariaJawas/ListBottomSheet) ![Licence](https://img.shields.io/github/license/ZakariaJawas/ListBottomSheet) ![Stars](https://img.shields.io/github/stars/ZakariaJawas/ListBottomSheet)

## Next Release v1.1.0
## Next Release v1.2.0
- [ ] Multiple selection list

## Release v1.1.0
- [x] Searchable list
- [ ] Selected item indicator
- [x] Selected item indicator


## Installation
Expand All @@ -29,8 +31,17 @@ implementation 'com.github.ZakariaJawas:ListBottomSheet:{tag}'
```

## Preview
_Basic_

![ListSheet](https://github.com/ZakariaJawas/ListBottomSheet/blob/master/Screenshot%20from%202020-03-15%2018-17-15.png)
<img src="https://github.com/ZakariaJawas/ListBottomSheet/blob/master/Screenshot_1586762142.png" height="600">

_Searchable_

<img src="https://github.com/ZakariaJawas/ListBottomSheet/blob/master/Screenshot_1586760454.png" height="600">

_Selected Item_

<img src="https://github.com/ZakariaJawas/ListBottomSheet/blob/master/Screenshot_1586760585.png" height="600">

## Usage

Expand Down Expand Up @@ -82,7 +93,6 @@ used to change the alignment of the title

used to change the size of the title

ex:
```kotlin
listSheet.titleSize = 18F
```
Expand All @@ -91,11 +101,18 @@ listSheet.titleSize = 18F

used to change the color of the title

ex:
```kotlin
listSheet.titleColor = ContextCompat.getColor(this, R.color.colorPrimary)
```

**_selectedItemIndex_**

used to change the selected item in the list at any time in the code

```kotlin
listSheet.selectedItemIndex = 2
```

## Customization

You can use the following functions with the builder to customize the list sheet
Expand All @@ -104,7 +121,6 @@ You can use the following functions with the builder to customize the list sheet

used to pass a custom item layout instead of the default layout provided by the library

ex:
```kotlin
.itemLayout(R.layout.custom_list_item)
```
Expand All @@ -122,6 +138,29 @@ default value `false`

used to hide or show the close button in the sheet

**_selectedItemColor(Int)_**

param Int is **color integer** value not **color resource id**

used to change the deafult selected item color, default value (BLACK)

```kotlin
.selectedItemColor(ContextCompat.getColor(this, R.color.colorAccent))
```

**_selectedItemIndex(Int)_**

used to build the sheet with initial selected item in the list, default value `-1` means no selected item

```kotlin
.selectedItemIndex(2)
```

**_searchable(Boolean)_**
default value `false`

used to enable the search functionality in the bottom sheet

## Compatibility
Minimum Android SDK: API level 16

Expand Down
Binary file added Screenshot_1586760454.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshot_1586760585.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshot_1586762142.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d8f729d

Please sign in to comment.