Android FancyButtons

    Rating: ★★★★☆
    View: 213
    Download: 85
    Từ khóa:

    Overview

    FancyButtons, helps you to easily create fancy buttons without the need of drawable files.

    FancyButtons Android

    Features

    +Border (stroke, radius, color)

    +Background (normal, focus)

    +Icon (Drawable, font icon)

    -FontAwsome

    -Custom font

    -Icon (Position, size)

    +right

    +left

    +top

    +bottom

    +Icon Size

    Including in your project : Maven Central

    compile 'com.github.medyo:fancybuttons:1.0@aar'

    Usage

    1 - Include FancyButtons namespace to the root element :

    xmlns:fancy="http://schemas.android.com/apk/res-auto" 
    

    2 - Add the FancyButton View with custom params :

    Sample

    1 - Spotify Button

    FancyButton Spotify

    *3 - Facebook Button *

    FancyButton Facebook

    FancyButton facebookLoginBtn = new FancyButton(this);
    facebookLoginBtn.setText("Login with Facebook");
    facebookLoginBtn.setBackgroundColor(Color.parseColor("#3b5998"));
    facebookLoginBtn.setFocusBackgroundColor(Color.parseColor("#5474b8"));
    facebookLoginBtn.setTextSize(17);
    facebookLoginBtn.setRadius(5);
    facebookLoginBtn.setIconResource("uf082");
    facebookLoginBtn.setIconPosition(FancyButton.POSITION_LEFT);
    acebookLoginBtn.setFontIconSize(30);

    onus

    Fancybuttons is delivered with :

    1. 1 font : RobotoRegular
    2. 1 icon Font : FontAwesome ( cheatsheet http://fortawesome.github.io/Font-Awesome/cheatsheet/)
    loading Đang tải...

    template được ưa chuộng