@@ -65,6 +65,45 @@ xmlns:app="http://schemas.android.com/apk/res-auto"
65
65
66
66
```
67
67
68
+ CuteButton
69
+ ```
70
+
71
+ <com.rejowan.cutebutton.CuteButton
72
+ android:id="@+id/cuteButton"
73
+ android:layout_width="190dp"
74
+ android:layout_height="55dp"
75
+ android:layout_margin="5dp"
76
+ app:cb_bgColor="#0097A7"
77
+ app:cb_bgColorFocus="#006064"
78
+ app:cb_borderRadius="40dp"
79
+ app:cb_icon="@drawable/ic_arrow"
80
+ app:cb_iconPadding="5dp"
81
+ app:cb_iconSize="25dp"
82
+ app:cb_text="Download"
83
+ app:cb_textColor="#fff"
84
+ app:cb_textSize="20sp" />
85
+
86
+ ```
87
+
88
+ Java
89
+
90
+ ```
91
+ CuteButton cuteButton = findViewById(R.id.cuteButton);
92
+ cuteButton.setText("Hi, This is Cute Button");
93
+ cuteButton.setBackgroundColor(Color.BLUE);
94
+ cuteButton.setDisableColor(Color.BLACK);
95
+ cuteButton.setFocusColor(Color.CYAN);
96
+ cuteButton.setTextStyle(CuteButton.TEXT_STYLE_BOLD);
97
+ cuteButton.setBorderWidth(2);
98
+ cuteButton.setBorderWidth(1);
99
+ cuteButton.setRadius(10);
100
+ cuteButton.setIcon(R.drawable.ic_baseline_save_24);
101
+ cuteButton.setIconSize(25);
102
+ cuteButton.setIconPadding(10);
103
+ cuteButton.setIconPosition(CuteButton.POSITION_START);
104
+
105
+ ```
106
+
68
107
## Contribute
69
108
70
109
Please fork this repository and contribute back using [ pull requests] ( https://github.com/ahmmedrejowan/CuteButton/pulls ) .
0 commit comments