首页 > 其他 > 详细

SimpleTagImageView

时间:2015-05-02 21:58:56      阅读:353      评论:0      收藏:0      [点我收藏+]

https://github.com/wujingchao/SimpleTagImageView

SimpleTagImageView

ImageView with a tag in android. So it‘s a ImageView.

Demo

技术分享

Warning:When you set the round radius,the simpletagimageview scale type just support fitXY now!

技术分享

SimpleTagImageView.zip 

Usage

<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"/>

Quick Start

Gradle

compile ‘net.wujingchao.android.view:simple-tag-imageview:1.0.0‘

Maven

<dependency>
    <groupId>net.wujingchao.android.view</groupId>
    <artifactId>simple-tag-imageview</artifactId>
    <version>1.0.0</version>
    <type>aar</type>
</dependency> 

Ivy

<dependency org=‘simple-tag-imageview‘ name=‘net.wujingchao.android.view‘ rev=‘1.0.0‘>
    <artifact name=‘net.wujingchao.android.view‘ ext=‘aar‘></artifact>
</dependency>

Developed By

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

SimpleTagImageView

原文:http://www.cnblogs.com/eustoma/p/4472557.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!