<commit_before># pin-edittext
An extension of EditText with pin style

![Sceenshot](https://user-images.githubusercontent.com/9587882/31598644-f307ce54-b278-11e7-8082-34249a4e07c5.gif)

Usage
--------
Include `PinCodeEditText` in your layout XML
```xml
<com.oakkub.android.PinCodeEditText
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:maxLength="4"
			android:inputType="textNoSuggestions"
            app:pinHighlightStateDrawable="@drawable/pin_oval_highlight_state"
            app:pinNormalStateDrawable="@drawable/pin_oval_normal_state"
            app:pinSpace="16dp"
			app:pinHeight="24dp"
            app:pinWidth="24dp"/>
```
- **android:maxLength:** The total pin
- **android:inputType:** Preferred "textNoSuggestions" (If you want text) or "number" (If you want only number)
- **app:pinSpace:** Space between each pin
- **app:pinHeight:** Height of each pin
- **app:pinWidth:** Width of each pin
- **app:pinHighlightStateDrawable:** Drawable of each pin that already has text
- **app:pinNormalStateDrawable:** Drawable of each empty pin

Requirement
--------
Android API 15 or higher

Download
--------
Download the latest version in Gradle:
```groovy
compile 'com.oakkub.android:pin-edittext:1.1.0'
```

License
--------
<commit_msg>Reformat xml sample in README<commit_after># pin-edittext
An extension of EditText with pin style

![Sceenshot](https://user-images.githubusercontent.com/9587882/31598644-f307ce54-b278-11e7-8082-34249a4e07c5.gif)

Usage
--------
Include `PinCodeEditText` in your layout XML
```xml
<com.oakkub.android.PinCodeEditText
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:maxLength="4"
    android:inputType="textNoSuggestions"
    app:pinHighlightStateDrawable="@drawable/pin_oval_highlight_state"
    app:pinNormalStateDrawable="@drawable/pin_oval_normal_state"
    app:pinSpace="16dp"
    app:pinHeight="24dp"
    app:pinWidth="24dp"/>
```
- **android:maxLength:** The total pin
- **android:inputType:** Preferred "textNoSuggestions" (If you want text) or "number" (If you want only number)
- **app:pinSpace:** Space between each pin
- **app:pinHeight:** Height of each pin
- **app:pinWidth:** Width of each pin
- **app:pinHighlightStateDrawable:** Drawable of each pin that already has text
- **app:pinNormalStateDrawable:** Drawable of each empty pin

Requirement
--------
Android API 15 or higher

Download
--------
Download the latest version in Gradle:
```groovy
compile 'com.oakkub.android:pin-edittext:1.1.0'
```

License
--------

{'fraction_non_alphanumeric': 0.14246788633709614, 'fraction_numerical': 0.0397041650447645, 'mean_word_length': 4.6607929515418505, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3447389', 'n_tokens_mistral': 905, 'n_tokens_neox': 814, 'n_words': 190}