Git Product home page Git Product logo

richbuttons's Introduction

RichButtons

Build Status Maven Central

'RichButtons' is a set of button styles for Android applications. All of the styles are made of XML.

Screenshot

Install

Eclipse

  • The 'richbuttons' folder is the main library. Please import it into the Eclipse or other IDEs.
  • Or just copy files in the library folder into your project.

Gradle

Add a dependency to your build.gradle.

dependencies {
    compile 'com.github.ksoichiro:richbuttons:0.1.1@aar'
}

Usage

Styles of the buttons such as background and text color are defined as <style>. Apply the styles which name starts with RbButton. to the your buttons like following:

    <Button
        style="@style/RbButton.Blue"
        android:text="RbButton.Blue" />

If you want to customize styles, directly modify the definition in the library or inherit styles.

Blue


    <Button
        style="@style/RbButton.Blue"
        android:text="RbButton.Blue" />

Purple


    <Button
        style="@style/RbButton.Purple"
        android:text="RbButton.Purple" />

Green


    <Button
        style="@style/RbButton.Green"
        android:text="RbButton.Green" />

Yellow


    <Button
        style="@style/RbButton.Yellow"
        android:text="RbButton.Yellow" />

Red


    <Button
        style="@style/RbButton.Red"
        android:text="RbButton.Red" />

Glossy


    <Button
        style="@style/RbButton.Glossy"
        android:text="RbButton.Glossy" />

Inverse


    <Button
        style="@style/RbButton.Inverse"
        android:text="RbButton.Inverse" />

Inverse.Red


    <Button
        style="@style/RbButton.Inverse.Red"
        android:text="RbButton.Inverse.Red" />

Inverse.Blue


    <Button
        style="@style/RbButton.Inverse.Blue"
        android:text="RbButton.Inverse.Blue" />

Inverse.LightBlue


    <Button
        style="@style/RbButton.Inverse.LightBlue"
        android:text="RbButton.Inverse.LightBlue" />

Inverse.Green


    <Button
        style="@style/RbButton.Inverse.Green"
        android:text="RbButton.Inverse.Green" />

Inverse.Orange


    <Button
        style="@style/RbButton.Inverse.Orange"
        android:text="RbButton.Inverse.Orange" />

Inverse.Gray


    <Button
        style="@style/RbButton.Inverse.Gray"
        android:text="RbButton.Inverse.Gray" />

Inverse.Black


    <Button
        style="@style/RbButton.Inverse.Black"
        android:text="RbButton.Inverse.Black" />

Inverse.Rounded


    <Button
        style="@style/RbButton.Inverse.Rounded"
        android:text="RbButton.Inverse.Rounded" />

Inverse.Rounded.Red


    <Button
        style="@style/RbButton.Inverse.Rounded.Red"
        android:text="RbButton.Inverse.Rounded.Red" />

Inverse.Rounded.Blue


    <Button
        style="@style/RbButton.Inverse.Rounded.Blue"
        android:text="RbButton.Inverse.Rounded.Blue" />

Inverse.Rounded.LightBlue


    <Button
        style="@style/RbButton.Inverse.Rounded.LightBlue"
        android:text="RbButton.Inverse.Rounded.LightBlue" />

Inverse.Rounded.Green


    <Button
        style="@style/RbButton.Inverse.Rounded.Green"
        android:text="RbButton.Inverse.Rounded.Green" />

Inverse.Rounded.Orange


    <Button
        style="@style/RbButton.Inverse.Rounded.Orange"
        android:text="RbButton.Inverse.Rounded.Orange" />

Inverse.Rounded.Gray


    <Button
        style="@style/RbButton.Inverse.Rounded.Gray"
        android:text="RbButton.Inverse.Rounded.Gray" />

Inverse.Rounded.Black


    <Button
        style="@style/RbButton.Inverse.Rounded.Black"
        android:text="RbButton.Inverse.Rounded.Black" />

Darken


    <Button
        style="@style/RbButton.Darken"
        android:text="RbButton.Darken" />

Recessed


    <Button
        style="@style/RbButton.Recessed"
        android:text="RbButton.Recessed" />

ICS


    <Button
        style="@style/RbButton.ICS"
        android:text="RbButton.ICS" />

ICS.Black


    <Button
        style="@style/RbButton.ICS.Black"
        android:text="RbButton.ICS.Black" />

Plastic


    <Button
        style="@style/RbButton.Plastic"
        android:text="RbButton.Plastic" />

Plastic.Rounded


    <Button
        style="@style/RbButton.Plastic.Rounded"
        android:text="RbButton.Plastic.Rounded" />

Samples

  • Sample applications using this library are included in the samples folder.

Developed By

License

Copyright (c) 2013 Soichiro Kashima.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

richbuttons's People

Contributors

ksoichiro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.