Skip to content

crowdworks/android-widget

Repository files navigation

android-widget

Some useful Android widgets.

Custom font widgets

FontAwesome

using FontAwesome

repositories {
  maven { url "https://dl.bintray.com/crowdworks/maven" }
}

dependencies {
  compile 'com.android.support:appcompat-v7:26.1.0' // you can use any version.
  compile 'jp.co.crowdworks.android-widget:widget-fontawesome:0.0.1'
}

FontAwesomeTextView and FontAwesomeButton can be used as below:

    <jp.co.crowdworks.android.widget.FontAwesomeTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="4dp"
        android:text="@string/fa_twitter"
        android:textSize="24sp"
        />

Remark that all string resources are defined as fa_xxxx.

Material Design Iconic Font

using Material Design Iconic Font

repositories {
  maven { url "https://dl.bintray.com/crowdworks/maven" }
}

dependencies {
  compile 'com.android.support:appcompat-v7:26.1.0' // you can use any version.
  compile 'jp.co.crowdworks.android-widget:widget-material-design-font:0.0.1'
}

MaterialDesignFontTextView and MaterialDesignFontButton can be used as below:

    <jp.co.crowdworks.android.widget.MaterialDesignFontTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="4dp"
        android:text="@string/zmdi_search"
        android:textSize="24sp"
        />

Remark each icon name has zmdi_ prefix.

divider

repositories {
  maven { url "https://dl.bintray.com/crowdworks/maven" }
}

dependencies {
  compile 'jp.co.crowdworks.android-widget:widget-divider:0.0.1'
}

DividerView can be used as below:

    <jp.co.crowdworks.android.widget.DividerView
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        /><!-- divide horizontally -->

    <jp.co.crowdworks.android.widget.DividerView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:thickness="2dp"
        /><!-- divide vertically -->
  • The default thickness is 1dp
  • The color is colorControlNormal (or textColorSecondary for API<21) with alpha=40%

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published