RoundedButton

Additional

Language
Kotlin
Version
v0.1.1 (Jan 23, 2019)
Created
Jan 13, 2019
Updated
Jan 31, 2019 (Retired)
Owner
사부작사부작 (sabujak-sabujak)
Contributor
Seokwon Jeong (sangcomz)
1
Activity
Badge
Generate
Download
Source code

RoundedButton

Create round buttons quickly and easily.

What's New in 0.1.1? ????

  • [Release] Release Library!

How to Use

Gradle

    repositories {
        maven { url 'https://jitpack.io' }
    }

    dependencies {
        implementation 'com.github.sabujak-sabujak:RoundedButton:v0.1.1'
    }

Usage

    <life.sabujak.roundedbutton.RoundedButton
        android:id="@+id/roundedButton"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="24dp"
        android:gravity="center"
        android:padding="24dp"
        android:textSize="20dp"
        android:text="Button"
        android:textColor="#ffffff"
        app:buttonGradientStartColor="@color/colorPrimary"
        app:buttonGradientEndColor="@color/colorAccent"
        app:buttonCornerRadius="20dp"
         />

attribute

Attribute Name Description Default Value
buttonColor button background color #FF5252
buttonGradientStartColor button background start gradient color -1
buttonGradientEndColor button background end gradient color -1
buttonCornerRadius button corner radius 0
buttonRippleColor button click ripple color #ffffff
buttonRippleAlpha button ripple start alpha value 100

Result Screen

Contribute

We welcome any contributions.

To do

  • Add gradient direction
  • Shadow
  • Support AndroidX

Inspired by

License

Copyright 2019 sabujak-sabujak

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.