LabelView

Additional

Language
Java
Version
N/A
Created
Dec 3, 2015
Updated
Dec 4, 2015 (Retired)
Owner
Corer (corerzhang)
Contributor
Corer (corerzhang)
1
Activity
Badge
Generate
Download
Source code
APK file

Blurb

LabelView

一个简单的标签控件 支持自定义 文字大小(textSize), 间距(labelTopPadding), 背景色(backgroundColor), 和方向(direction)等

  <me.corer.labelview.LabelView
        app:num="20:00"
        app:text="晚场"
        app:numStyle="italic"
        app:numSize="14sp"
        app:textSize="9sp"
        app:direction="leftTop"
        app:labelTopPadding="15dp"
        app:labelCenterPadding="5dp"
        app:labelBottomPadding="10dp"
        app:backgroundColor="@color/colorPrimaryDark"
        android:layout_marginTop="@dimen/activity_vertical_margin"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>