You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For creating facebook button you must only do this:
21
+
Custom Facebook button:
23
22
```xml
24
23
<pl.sigmapoint.customview.CustomButton
25
24
android:layout_width="match_parent"
@@ -38,67 +37,68 @@ For creating facebook button you must only do this:
38
37
app:cb_text_color="#FFFFFF" />
39
38
```
40
39
41
-
<h2> Reference </h2>
42
-
<p> Default image position is left and centered text in button. <br>
43
-
When image is bigger than half of width, weight automatically is setting to 1. <br>
44
-
Only when image is in horizontal position text can be center. </p>
45
-
<h3> XML tag's </h3>
40
+
##Reference
41
+
Default image position is left. Default text position is center.
42
+
When image is bigger than half of width, then weight automatically is setting to 1.
43
+
Only when image is in horizontal position text can be center.
44
+
###XML tag's
46
45
47
-
This is the base tag of CustomButton:<br>
46
+
This is the base tag of CustomButton:
48
47
```xml
49
48
<pl.sigmapoint.customview.CustomButton
50
49
android:id="@+id/sigmapoint_button"
51
50
android:layout_width="match_parent"
52
51
android:layout_height="match_parent"
53
52
android:text="text"/>
54
53
```
55
-
<p> You can specify the following things: <br>
56
-
cb_primary_color - you can specify only two colors for all button. This color was set to bacground state normal, <br>
57
-
frame and text sate pressed. But it will be override by background, text, frame color. {format - color} <br>
58
-
cb_secondary_color - you can specify only two colors for all button. This color was set to bacground state pressed, <br> frame and text state normal. But it will be override by background, text, frame color. {format - color} <br>
59
-
cb_background - background color of normal button {format - color} <br>
60
-
cb_background_pressed - background color of pressed button {format - color} <br>
61
-
cb_background_disabled - background color of disabled button {format - color} <br>
cb_text_center or android:textAlignment - only works when image weight doesn't specify. Center text in button. {format - boolean or only "center" value} <br>
cb_primary_color - you can specify only two colors for all button. This color was set to bacground state normal,
57
+
frame and text sate pressed. But it will be override by background, text, frame color. {format - color}
58
+
cb_secondary_color - you can specify only two colors for all button. This color was set to bacground state pressed, frame and text state normal. But it will be override by background, text, frame color. {format - color}
59
+
cb_background - background color of normal button {format - color}
60
+
cb_background_pressed - background color of pressed button {format - color}
61
+
cb_background_disabled - background color of disabled button {format - color}
cb_text_color_pressed - color of pressed text {format - color}
64
+
cb_text_color_disabled - color of disabled text {format - color}
65
+
cb_text_color or android:textColor - color of normal text {format - color}
66
+
cb_text_size - {format - dimension}
67
+
cb_text_padding - {format - dimension}
68
+
cb_text_padding_left - {format - dimension}
69
+
cb_text_padding_top - {format - dimension}
70
+
cb_text_padding_right - {format - dimension}
71
+
cb_text_padding_bottom - {format - dimension}
72
+
cb_text_weight - {format - integer}
73
+
cb_text_center or android:textAlignment - only works when image weight doesn't specify. Center text in button. {format - boolean or only "center" value}
0 commit comments