Skip to content

Commit 183a10c

Browse files
committed
Merge branch 'master' of github.com:Sigmapoint/pl.sigmapoint.view.CustomButton
2 parents 8781599 + ada111d commit 183a10c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ cb_text_padding_left - {format - dimension} <br>
3131
cb_text_padding_top - {format - dimension} <br>
3232
cb_text_padding_right - {format - dimension} <br>
3333
cb_text_padding_bottom - {format - dimension} <br>
34+
cb_text_weight - {format - integer} <br>
3435
<br>
3536
cb_shape_radius - corner radius {format - dimension}<br>
3637
cb_shape_type - shape type, you can choose: rect or oval <br>
@@ -51,7 +52,9 @@ cb_image_padding - {format - dimension} <br>
5152
cb_image_padding_left - {format - dimension} <br>
5253
cb_image_padding_top - {format - dimension} <br>
5354
cb_image_padding_right - {format - dimension} <br>
54-
cb_image_padding_bottom - {format - dimension} <br> </p>
55+
cb_image_padding_bottom - {format - dimension} <br>
56+
cb_image_scale_type - {center, center_inside, center_crop, fit_center, fit_start, fit_end, fit_xy} <br>
57+
cb_image_weight - {format - integer} </p>
5558
<h3> Java Code </h3>
5659
setShapeBackground(int shapeType, int shapeRadius) <br>
5760
setBackgroundColorStateList(ColorStateList colorStateList) <br>
@@ -64,7 +67,10 @@ setTextColor(ColorStateList colorStateList) <br>
6467
setText(String text) <br>
6568
setTextSize(float size) <br>
6669
setTextPadding(int[] padding) - int[4]{CustomButton.LEFT, CustomButton.TOP, CustomButton.RIGHT, CustomButton.BOTTOM} <br>
67-
setImage(int position, Drawable drawableNormal, Drawable drawablePressed, Drawable drawableDisabled, int[] padding) <br>
68-
setImage(int position, Drawable drawable, int[] padding) <br>
70+
setTextParams(int weight, int[] padding) <br>
71+
setImage(int position, Drawable drawableNormal, Drawable drawablePressed, Drawable drawableDisabled, ImageView.ScaleType scaleType, int weight, int[] padding) <br>
72+
setImage(int position, Drawable drawable, ImageView.ScaleType scaleType, int weight, int[] padding)<br>
6973
setElevationEnabled(boolean enabled) <br>
70-
and evry XML tag have getter <br>
74+
and evry XML tag have getter
75+
<h3> Static field </h3>
76+
LEFT, TOP, RIGHT, BOTTOM

0 commit comments

Comments
 (0)