Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #1

Merged
merged 1 commit into from
Mar 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ A practical, cool and elegant Submit Button

```xml
<com.spark.submitbutton.SubmitButton
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Submit"
android:textColor="@color/gray"
app:sub_btn_background="@color/white"
app:sub_btn_duration="3000"
app:sub_btn_line_color="@color/green"
app:sub_btn_ripple_color="@color/green"
app:sub_btn_tick_color="@color/white" />

android:layout_width="150dp" //set your own width accordingly
android:layout_height="40dp" //set your own height accordingly
android:text="Submit"
android:textColor="#A4A4A4" //gray
app:sub_btn_background="#FFFFFF" //white
app:sub_btn_duration="3000"
app:sub_btn_line_color="#82FA58" //green
app:sub_btn_ripple_color="#82FA58" //green
app:sub_btn_tick_color="#FFFFFF" //white
/>
//For more color codes, go to https://html-color-codes.info/
```
### Notice
- SubmitButton is a subclass of TextView, so almost all attributes of TextView can be used for SubmitButton.
Expand Down