Home

Awesome

#FlycoLabelView

####中文版 A Simple Android LabelView.

##Demo <img src="https://github.com/H07000223/FlycoLabelView/blob/master/preview.png" width="640">

##Gradle

dependencies{
    compile 'com.flyco.labelview:FlycoLabelView_Lib:1.0.2@aar'
}

##Attributes

nameformatdescription
lv_textstringset text
lv_text_colorcolorset text color default #ffffff
lv_text_sizedimensionset text size default 11sp
lv_text_boldbooleanset text bold default true
lv_text_all_capsbooleanset text all caps default true
lv_background_colorcolorset LabelView background color default #FF4081
lv_min_sizedimensionmin size of rect of LabelView default mFillTriangle?35dp:50dp
lv_paddingdimensionset paddingTop and paddingBottom of text default 3.5dp, invalid when mFillTriangle true
lv_gravityenumset LabelView gravity TOP_LEFT or TOP_RIGHT or BOTTOM_LEFT or BOTTOM_RIGHT default TOP_LEFT
lv_fill_trianglebooleanset fill triangle area, default false