Skip to content

Commit 9ad773f

Browse files
committed
RELEASE : Update README with latest features
1 parent 1206ae6 commit 9ad773f

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

README.MD

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,28 @@ for the **Bottom** drawable.
143143

144144
If you need to handle the initial visibility of the drawable(s) you can use
145145
```
146-
app:csStartDrawableVisible="true | false"
147-
app:csEndDrawableVisible"true | false"
148-
app:csTopDrawableVisible"true | false"
149-
app:csBottomDrawableVisible"true | false"
146+
app:csStartDrawableVisible
147+
app:csEndDrawableVisible
148+
app:csTopDrawableVisible
149+
app:csBottomDrawableVisible
150150
```
151151
(default is true)
152152

153+
You can add a ```Tint```(Single color or reference to ColorStateList) and a ```TintMode``` to the drawable(s) with
154+
```
155+
app:csStartDrawableTint
156+
app:csEndDrawableTint
157+
app:csTopDrawableTint
158+
app:csBottomDrawableTint
159+
```
160+
161+
```
162+
app:csStartDrawableTintMode
163+
app:csEndDrawableTintMode
164+
app:csTopDrawableTintMode
165+
app:csBottomDrawableTintMode
166+
```
167+
153168
#### Code
154169

155170
Use this XML as example
@@ -168,7 +183,7 @@ ClickDrawableEditText mCdEditText = (ClickDrawableEditText)findViewById(R.id.cli
168183
Create a ```CsDrawable``` object using the builder class
169184

170185
```java
171-
CsDrawable csDrawable = new CsDrawable.Builder(this, R.drawable.ic_close_red_24dp)
186+
CsDrawable csDrawable = new CsDrawable.Builder(this, R.drawable.ic_close_red_24dp, true)
172187
.setDrawableDpSize(30, 30) //or .setDrawablePixelSize(width, height) for pixel
173188
.setVisibility(false) //optional, default true
174189
.build();

0 commit comments

Comments
 (0)