转载请注明出处:
http://blog.csdn.net/user11223344abc?viewmode=contents
出自【蛟-blog】
本文只讨论如何使用,有兴趣朋友的可以去原作者项目地址下看看
这里贴出项目地址:
https://github.com/DavidPizarro/AutoLabelUI
布局
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:autolabel="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_zj_test"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.dpizarro.libraries.autolabelui.ZjTestActivity">
<com.dpizarro.autolabel.library.AutoLabelUI
android:id="@+id/label_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
autolabel:icon_cross="@drawable/cross"
autolabel:label_background_res="@color/default_background_label"
autolabel:label_clickable=