Android Color Button


License

License

GroupId

GroupId

me.yuichi0301
ArtifactId

ArtifactId

cbutton
Last Version

Last Version

1.0.6
Release Date

Release Date

Type

Type

aar
Description

Description

Android Color Button
Android Color Button
Project URL

Project URL

https://github.com/YuichiUchida/android-color-button
Source Code Management

Source Code Management

https://github.com/YuichiUchida/android-color-button.git

Download cbutton

How to add to project

<!-- https://jarcasting.com/artifacts/me.yuichi0301/cbutton/ -->
<dependency>
    <groupId>me.yuichi0301</groupId>
    <artifactId>cbutton</artifactId>
    <version>1.0.6</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/me.yuichi0301/cbutton/
implementation 'me.yuichi0301:cbutton:1.0.6'
// https://jarcasting.com/artifacts/me.yuichi0301/cbutton/
implementation ("me.yuichi0301:cbutton:1.0.6")
'me.yuichi0301:cbutton:aar:1.0.6'
<dependency org="me.yuichi0301" name="cbutton" rev="1.0.6">
  <artifact name="cbutton" type="aar" />
</dependency>
@Grapes(
@Grab(group='me.yuichi0301', module='cbutton', version='1.0.6')
)
libraryDependencies += "me.yuichi0301" % "cbutton" % "1.0.6"
[me.yuichi0301/cbutton "1.0.6"]

Dependencies

compile (1)

Group / Artifact Type Version
com.android.support » support-v4 jar 19.1.0

Project Modules

There are no modules declared in this project.

android-color-button

Using Maven

ColorButton Library is pushed to Maven Central, so you just need to add the following dependency to your build.gradle.

dependencies {
    compile 'me.yuichi0301:cbutton:1.0.6'
}

Usage

via xml (sample)

<me.yuichi0301.widget.ColorButton
    android:layout_marginTop="10dp"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/hello_world"
    android:textColor="#fff"
    custom:backgroundColor="#f00" />

via code (sample)

ColorButton cbutton = new ColorButton(getApplicationContext());
cbutton.setStyle(7, Color.GREEN);

Versions

Version
1.0.6