Skip to content

zodsoft/MaterialWidget

 
 

Repository files navigation

MaterialWidget

Android L design widget in Android 4.0 ~ 4.4.

Screenshot

Imgur

TabIndicator

Thank PagerSlidingTabStrip for giving me some inspiration!

Usage

<com.material.widget.TabIndicator
    android:id="@+id/indicator"
    android:background="@color/primary_color"
    android:layout_width="match_parent"
    android:layout_height="50dp"/>

Attribute

<attr name="tab_text_size" format="dimension"/>
<attr name="tab_text_color" format="color"/>
<attr name="tab_text_selected_color" format="color"/>
<attr name="tab_text_disabled_color" format="color"/>
<attr name="tab_ripple_color" format="color"/>
<attr name="tab_underline_color" format="color"/>
<attr name="tab_underline_height" format="dimension"/>
<attr name="tab_max_column" format="integer"/>

CircleButton

Usage

<com.material.widget.CircleButton
    android:id="@+id/circle_button"
    widget:circle_icon="@drawable/ic_add"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>

Attribute

<attr name="circle_icon" format="reference"/>
<attr name="circle_color" format="color"/>
<attr name="circle_shadow_radius" format="float"/>
<attr name="circle_shadow_offset_x" format="float"/>
<attr name="circle_shadow_offset_y" format="float"/>
<attr name="circle_shadow_color" format="color"/>

PaperButton

Usage

<com.material.widget.PaperButton
    widget:paper_text="Paper Button"
    android:layout_width="160dp"
    android:layout_height="54dp"/>

Attribute

<attr name="paper_text" format="string"/>
<attr name="paper_text_size" format="dimension"/>
<attr name="paper_text_color" format="color"/>
<attr name="paper_font" format="string"/>
<attr name="paper_color" format="color"/>
<attr name="paper_corner_radius" format="dimension"/>
<attr name="paper_shadow_radius" format="float"/>
<attr name="paper_shadow_offset_x" format="float"/>
<attr name="paper_shadow_offset_y" format="float"/>
<attr name="paper_shadow_color" format="color"/>

About

Android L design widget in Android 4.0 ~ 4.4.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published