Skip to content

Commit c09cde9

Browse files
author
Amith Chandrappa
committed
Merge branch 'master' of https://github.com/amithgc/SliderNumPad
2 parents 72dee03 + 71f361f commit c09cde9

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
[![Build Status](https://travis-ci.org/amithgc/SliderNumPad.svg?branch=master)](https://travis-ci.org/amithgc/SliderNumPad) [![Hex.pm](https://img.shields.io/hexpm/l/plug.svg)](https://github.com/amithgc/SliderNumPad/blob/master/LICENSE.txt)
1+
[![Build Status](https://travis-ci.org/amithgc/SliderNumPad.svg?branch=master)](https://travis-ci.org/amithgc/SliderNumPad) [![Hex.pm](https://img.shields.io/hexpm/l/plug.svg)](https://github.com/amithgc/SliderNumPad/blob/master/LICENSE.txt) [ ![Download](https://api.bintray.com/packages/amithgc/maven/slidernumpad/images/download.svg) ](https://bintray.com/amithgc/maven/slidernumpad/_latestVersion)
22

33

44
# What is SliderNumPad?
5-
In Google's Material Design, Google introduce **Bottom sheets**.([Components – Bottom sheets](https://material.google.com/components/bottom-sheets.html))<br/>
6-
**Bottom sheets** slide up from the bottom of the screen to reveal more content.
7-
8-
If you want a Slideable number pad with an integrated Calculator, you can use this library.<br/>
9-
10-
**SliderNumPad** is simple number pad using bottom sheet.
11-
5+
If you want a Slideable number pad with an integrated Calculator, you can use this library.<br/> This component uses the **Bottom Sheets** for Android from Google.
6+
127
<br/><br/>
138

149

@@ -34,7 +29,7 @@ dependencies {
3429

3530
## How to use
3631
### 1. Basic Usage
37-
SliderNumPad is very easy to use, Just Use the code to render the Number Pad with default configurations.
32+
SliderNumPad is very easy to use, Just use the following code to render the Number Pad with default configurations.
3833
<br/>
3934
```java
4035
SliderNumPad bottomSheetDialogFragment = new SliderNumPad.Builder(MainActivity.this)
@@ -49,7 +44,7 @@ bottomSheetDialogFragment.show(getSupportFragmentManager());
4944
```
5045

5146
### 2. Advanced Usage
52-
SliderNubPad also provides different ways to customize the components, You can tune the component as it has to look in your app. Look at the following code for different configurations available.<br/>
47+
SliderNumPad also provides different ways to customize the components, You can tune the component as it has to look in your app. Look at the following code for different configurations available.<br/>
5348
```java
5449
SliderNumPad bottomSheetDialogFragment = new SliderNumPad.Builder(MainActivity.this)
5550
.setOnTextSelectedListener(new SliderNumPad.OnTextInputFinishListener() {
@@ -66,6 +61,7 @@ SliderNumPad bottomSheetDialogFragment = new SliderNumPad.Builder(MainActivity.t
6661
.setTextEqualsColor("#ffffff")
6762
.setTextSize(20)
6863
.setTextStyle(Typeface.BOLD_ITALIC)
64+
.setInitialValue (100)
6965
.create();
7066
bottomSheetDialogFragment.show(getSupportFragmentManager());
7167
```
@@ -83,6 +79,7 @@ Following are the customisations available in SliderNumPad
8379
* `setTextEqualsColor("#ffffff")`
8480
* `setTextSize(20)`
8581
* `setTextStyle(Typeface.BOLD_ITALIC)`
82+
* `setInitialValue(Typeface.BOLD_ITALIC)`
8683

8784
<br/><br/>
8885

@@ -289,4 +286,4 @@ Unless required by applicable law or agreed to in writing, software
289286
distributed under the License is distributed on an "AS IS" BASIS,
290287
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
291288
See the License for the specific language governing permissions and
292-
limitations under the License.
289+
limitations under the License.

0 commit comments

Comments
 (0)