@@ -31,6 +31,7 @@ cb_text_padding_left - {format - dimension} <br>
31
31
cb_text_padding_top - {format - dimension} <br >
32
32
cb_text_padding_right - {format - dimension} <br >
33
33
cb_text_padding_bottom - {format - dimension} <br >
34
+ cb_text_weight - {format - integer} <br >
34
35
<br >
35
36
cb_shape_radius - corner radius {format - dimension}<br >
36
37
cb_shape_type - shape type, you can choose: rect or oval <br >
@@ -51,7 +52,9 @@ cb_image_padding - {format - dimension} <br>
51
52
cb_image_padding_left - {format - dimension} <br >
52
53
cb_image_padding_top - {format - dimension} <br >
53
54
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 >
55
58
<h3 > Java Code </h3 >
56
59
setShapeBackground(int shapeType, int shapeRadius) <br >
57
60
setBackgroundColorStateList(ColorStateList colorStateList) <br >
@@ -64,7 +67,10 @@ setTextColor(ColorStateList colorStateList) <br>
64
67
setText(String text) <br >
65
68
setTextSize(float size) <br >
66
69
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 >
69
73
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