Skip to content

Commit 3913af9

Browse files
committed
Update README
1 parent 3c855c0 commit 3913af9

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,27 @@ cb_image_scale_type - {center, center_inside, center_crop, fit_center, fit_start
5858
cb_image_weight - {format - integer} </p>
5959
<h3> Java Code </h3>
6060
```java
61+
CustomButton(Context context, LayoutParams layoutParams, int backgroundColor, int textColor, Drawable icon)
6162
setShapeBackground(int shapeType, int shapeRadius)
6263
setBackgroundColorStateList(ColorStateList colorStateList)
64+
setBackgroundColor(int color)
65+
setBackgroundColorNormal(int color)
66+
setBackgroundColorPressed(int color)
67+
setBackgroundColorDosabled(int color)
6368
setFrame(int color, float size)
6469
setFrame(ColorStateList colorStateList, float size)
70+
setFrameColor(int color)
71+
setFrameColorNormal(int color)
72+
setFrameColorPressed(int color)
73+
setFrameColorDisabled(int color)
6574
setFrameSize(float frameSize)
6675
removeFrame()
76+
setText(String text)
6777
setTextColor(int color)
78+
setTextColorNormal(int color)
79+
setTextColorPressed(int color)
80+
setTextColorDisabled(int color)
6881
setTextColor(ColorStateList colorStateList)
69-
setText(String text)
7082
setTextSize(float size)
7183
setTextPadding(int[] padding) - int[4]{CustomButton.LEFT, CustomButton.TOP, CustomButton.RIGHT, CustomButton.BOTTOM}
7284
setTextParams(int weight, int[] padding)
@@ -76,4 +88,8 @@ setElevationEnabled(boolean enabled)
7688
and evry XML tag have getter
7789
```
7890
<h3> Static field </h3>
79-
LEFT, TOP, RIGHT, BOTTOM
91+
LEFT, TOP, RIGHT, BOTTOM - for image position
92+
93+
<h2> Dependencies </h2>
94+
In demo application <a href="https://github.com/yukuku/ambilwarna"> Ambil Warna Library</a> was used.
95+

0 commit comments

Comments
 (0)