Skip to content

Commit 689cbb7

Browse files
authored
Merge pull request #17 from gzeinnumer/dev-1
Dev 1
2 parents 4bc1e8e + 1a4fe0f commit 689cbb7

1 file changed

Lines changed: 45 additions & 37 deletions

File tree

README.md

Lines changed: 45 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</h1>
77

88
<div align="center">
9-
<a><img src="https://img.shields.io/badge/Version-2.0.2-brightgreen.svg?style=flat"></a>
9+
<a><img src="https://img.shields.io/badge/Version-2.0.3-brightgreen.svg?style=flat"></a>
1010
<a><img src="https://img.shields.io/badge/ID-gzeinnumer-blue.svg?style=flat"></a>
1111
<a><img src="https://img.shields.io/badge/Java-Suport-green?logo=java&style=flat"></a>
1212
<a><img src="https://img.shields.io/badge/Koltin-Suport-green?logo=kotlin&style=flat"></a>
@@ -17,52 +17,34 @@
1717

1818
---
1919

20-
### Feature List
21-
- [x] [Single Select](#searchviewdialog)
22-
- [x] [Multi Select](#searchviewdialog)
23-
- [x] [Filter](#searchviewdialog)
24-
25-
---
26-
27-
### Tech stack and 3rd library
28-
- Material.io ([docs](https://material.io/develop/android/docs/getting-started))
29-
- Multi and Single Selection in Recyclerview ([docs](https://medium.com/@maydin/multi-and-single-selection-in-recyclerview-d29587a7dee2)) ([example](https://github.com/gzeinnumer/MultiandSingleSelectioninRecyclerView))
30-
- DialogFragment ([docs](https://developer.android.com/reference/android/app/DialogFragment))
31-
32-
---
33-
3420
## Download
35-
Minimum Android SDK Version 21
36-
37-
#### Gradle
38-
**Step 1.** add maven `jitpack.io` to your `build.gradle` (Project) :
21+
Add maven `jitpack.io` and `dependencies` in `build.gradle (Project)` :
3922
```gradle
23+
// build.gradle project
4024
allprojects {
4125
repositories {
42-
google()
43-
jcenter()
26+
...
4427
maven { url 'https://jitpack.io' }
4528
}
4629
}
47-
```
4830
49-
**Step 2.** add dependensi to your `build.gradle` (Module) :
50-
```gradle
31+
// build.gradle app/module
5132
dependencies {
52-
implementation 'com.github.gzeinnumer:MyLibDialogSearchView:versi'
33+
...
34+
implementation 'com.github.gzeinnumer:MyLibDialogSearchView:version'
5335
implementation 'com.google.android.material:material:1.2.0'
5436
}
5537
```
5638

57-
---
58-
59-
**First Step**. Use `MaterialComponents` in your style :
39+
## Feature List
40+
- [x] [Single Select](#searchviewdialog)
41+
- [x] [Multi Select](#searchviewdialog)
42+
- [x] [Filter](#searchviewdialog)
6043

61-
```xml
62-
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
63-
<!-- Customize your theme here. -->
64-
</style>
65-
```
44+
## Tech stack and 3rd library
45+
- Material.io ([docs](https://material.io/develop/android/docs/getting-started))
46+
- Multi and Single Selection in Recyclerview ([docs](https://medium.com/@maydin/multi-and-single-selection-in-recyclerview-d29587a7dee2)) ([example](https://github.com/gzeinnumer/MultiandSingleSelectioninRecyclerView))
47+
- DialogFragment ([docs](https://developer.android.com/reference/android/app/DialogFragment))
6648

6749
---
6850

@@ -74,9 +56,20 @@ dependencies {
7456

7557
---
7658

59+
**First Step**. Use `MaterialComponents` in your style :
60+
61+
```xml
62+
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
63+
<!-- Customize your theme here. -->
64+
</style>
65+
```
66+
67+
---
68+
## USE
69+
7770
### SearchViewDialog
7871
Dialog with **1 Title, 1 Content, 1 EditText, 1 RecyclerView, 1 Negative Button, 1 Positive Button**. You can choise `Single Item Select` or `Multi Item Select`. The difference is only in `callback` function.
79-
- **Content Item** there is 3 type of is that you can sent to this dialog.
72+
- **Content Item** there is 3 types data that you can sent to this dialog.
8073

8174
**Type 1**
8275
```java
@@ -240,7 +233,7 @@ dialog.onCancelPressedCallBack(new SearchViewDialog.OnCancelPressed<String>() {
240233
dialog.show();
241234
```
242235

243-
[FullCode](https://github.com/gzeinnumer/MyLibDialogSearchView/blob/master/app/src/main/java/com/gzeinnumer/mylibsearchviewdialog/MainActivity.java) **Preview** :
236+
**Preview** :
244237

245238
| <img src="https://github.com/gzeinnumer/MyLibDialogSearchView/blob/master/preview/MyLibDialogSearchView_2.jpg"/> | <img src="https://github.com/gzeinnumer/MyLibDialogSearchView/blob/master/preview/MyLibDialogSearchView_4.jpg"/> | <img src="https://github.com/gzeinnumer/MyLibDialogSearchView/blob/master/preview/MyLibDialogSearchView_6.jpg"/> |
246239
|:-----------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------|
@@ -250,7 +243,7 @@ dialog.show();
250243
| <img src="https://github.com/gzeinnumer/MyLibDialogSearchView/blob/master/preview/MyLibDialogSearchView_5.jpg" /> | <img src="https://github.com/gzeinnumer/MyLibDialogSearchView/blob/master/preview/MyLibDialogSearchView_7.jpg"/> |
251244
|:------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------|
252245
| `Multi Select Item` Preview, you can select more than **1** Item | Click `OK` and call function `onOkPressedCallBackMulti` |
253-
246+
#
254247
#### SearchViewDialog -> Customize
255248

256249
<p align="center">
@@ -261,6 +254,21 @@ You can Customize your dialog UI. [**ReadMore**](https://github.com/gzeinnumer/M
261254

262255
---
263256

257+
**FullCode [MainActivity](https://github.com/gzeinnumer/MyLibDialogSearchView/blob/master/app/src/main/java/com/gzeinnumer/mylibsearchviewdialog/MainActivity.java)**
258+
259+
---
260+
261+
### Version
262+
- **2.0.3**
263+
- First Release
264+
265+
---
266+
267+
### Contribution
268+
You can sent your constibution to `branche` `open-pull`.
269+
270+
---
271+
264272
```
265273
Copyright 2020 M. Fadli Zein
266-
```
274+
```

0 commit comments

Comments
 (0)