带标签的ImageView扩展:SimpleTagImageView

n7w77 5年前

这是一个ImageView扩展,实现了为图片添加标签说明。示例:

带标签的ImageView扩展:SimpleTagImageView

用法

<net.wujingchao.android.view.SimpleTagImageView          xmlns:simple="http://schemas.android.com/apk/res-auto"          android:id="@+id/stiv"          android:layout_margin="18dip"          android:layout_width="256dip"          android:layout_height="192dip"          android:src="@drawable/qwer"          simple:simple_tag_textSize="18sp"          simple:simple_corner_distance="30dp"          simple:simple_tag_text="AB"          simple:simple_tag_background_color="#af27CDC0"          simple:simple_tag_orientation="left_bottom"          simple:simple_tag_width="20dip"          simple:simple_tag_textColor="@android:color/white"          simple:simple_tag_enable="true"          simple:simple_tag_round_radius="20dp"/>

项目主页:http://www.open-open.com/lib/view/home/1426813954054