Skip to content

Commit 462014c

Browse files
committed
DOCS : Small clarifications to the README
1 parent cd7d629 commit 462014c

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

README.MD

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ You can play with an interactive demo [here](https://appetize.io/app/9v3t7hcj8wc
4242

4343
## Setup
4444

45-
###### This library is minSdk 16
45+
##### This library is minSdk 16 (Android 4.1 Jelly Bean)
4646

4747
### 1. Add dependency in build.gradle
4848
```gradle
@@ -156,7 +156,7 @@ app:csBottomDrawableVisible
156156
```
157157
(default is true)
158158

159-
You can add a ```Tint```(Single color or reference to ColorStateList) and a ```TintMode``` to the drawable(s) with
159+
You can add a ```Tint```(Single color or reference to ```ColorStateList```) and a ```TintMode``` to the drawable(s) with
160160
```xml
161161
app:csStartDrawableTint
162162
app:csEndDrawableTint
@@ -241,20 +241,18 @@ viewInstance.setOnDrawableClickListener(new OnDrawableClickListener() {
241241
### Advanced features
242242
If you need to block the user after some action, for example after selecting an item in the ```ClickDrawableAutoCompleteTextView``` dropdown.
243243
You can prevent the view from receiving the focus for editing with
244-
```viewInstance.disableFocusOnText(boolean preventReFocus, boolean closeKeyboard)```
245-
246-
(Don't use *```setEnabled(false)```*, because this prevent the dispatch of all touch events).
244+
```viewInstance.disableFocusOnText(boolean preventReFocus, boolean closeKeyboard)```
247245

248246
```preventReFocus``` : Passing ```true```, will prevent re-focus on another EditText in the same ViewGroup (if present)
249247

250248
```closeKeyboard``` : Passing ```true```, will close the keyboard (if actually open)
251249

252-
Then if the user press the cancel icon, you should re-enable the editing on the view to let him pick another choice using
250+
To re-enable the editing on the view simply call
253251
```viewInstance.enableFocusOnText(boolean openKeyboard);```
254252

255253
```openKeyboard``` : Passing ```true```, will open the keyboard automatically (if actually closed)
256254

257-
You can find a concrete example of this use case in the app module of the repository, in the [MainActivity](https://github.com/matpag/ClickDrawableTextView/blob/master/app/src/main/java/com/matpag/sample/MainActivity.java)
255+
You can find a concrete example of this use case in the sample app of the repository, in the [ClickDrawableAutoCompleteTextView configured in MainActivity](https://github.com/matpag/ClickDrawableTextView/blob/master/app/src/main/java/com/matpag/sample/MainActivity.java)
258256

259257
## Author
260258

0 commit comments

Comments
 (0)