CustomShapeImageView Demo ([Play Store Demo][1])
-------------------------
Custom shape ImageView using PorterDuffXfermode with paint shapes and SVGs
You can also use this gist https://gist.github.com/MostafaGazar/ee345987fa6c8924d61b if you do not want to add this library project to your codebase.
Usage
-----
<com.meg7.widget.CustomShapeImageView
android:layout_width="64dp"
android:layout_height="64dp"
android:src="@drawable/sample"
app:shape="circle"
android:scaleType="centerCrop" />
<com.meg7.widget.CircleImageView
android:layout_width="64dp"
android:layout_height="64dp"
android:src="@drawable/sample"
android:scaleType="centerCrop" />
<com.meg7.widget.RectangleImageView
android:layout_width="64dp"
android:layout_height="64dp"
android:src="@drawable/sample"
android:scaleType="centerCrop" />
<com.meg7.widget.SvgImageView
android:layout_width="64dp"
android:layout_height="64dp"
android:src="@drawable/sample"
app:svg_raw_resource="@raw/shape_star"
android:scaleType="centerCrop" />
Screenshots
------------
![main](https://raw.github.com/MostafaGazar/CustomShapeImageView/master/Screenshot_2013-11-05-23-08-12.png)
Libraries used
---------------
* https://github.com/latemic/svg-android
Developed by
------------
* Mostafa Gazar - <eng.mostafa.gazar@gmail.com>
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/MostafaGazar/customshapeimageview/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
[1]: https://play.google.com/store/apps/details?id=com.meg7.samples
没有合适的资源?快使用搜索试试~ 我知道了~
自定义ImageView各种样式的画框 爱心型、五角星型
共52个文件
xml:15个
png:14个
java:11个
4星 · 超过85%的资源 需积分: 48 20 下载量 30 浏览量
2014-11-05
14:36:31
上传
评论
收藏 690KB ZIP 举报
温馨提示
各种遮罩的ImageView自定义类,有爱心型,五角星,花圈型,的图片边框
资源推荐
资源详情
资源评论
收起资源包目录
CustomShapeImageView-master.zip (52个子文件)
CustomShapeImageView-master
library
res
values-v11
styles.xml 334B
values-v14
styles.xml 391B
drawable-hdpi
ic_launcher.png 9KB
drawable-xhdpi
ic_launcher.png 14KB
values
attr.xml 416B
strings.xml 77B
styles.xml 697B
drawable-mdpi
ic_launcher.png 5KB
src
com
svgandroid
SVGParser.java 50KB
SVG.java 4KB
ParserHelper.java 9KB
SVGParseException.java 459B
meg7
widget
BaseImageView.java 4KB
CircleImageView.java 1KB
CustomShapeImageView.java 2KB
RectangleImageView.java 1KB
CustomShapeSquareImageView.java 970B
SvgImageView.java 2KB
project.properties 584B
AndroidManifest.xml 480B
Screenshot_2013-11-05-23-08-12.png 427KB
samples
res
raw
shape_star_2.svg 2KB
shape_star_3.svg 3KB
shape_5.svg 2KB
shape_circle_2.svg 3KB
shape_star.svg 3KB
shape_flower.svg 3KB
shape_heart.svg 2KB
values-v11
styles.xml 334B
values-v14
styles.xml 391B
drawable-hdpi
ic_launcher.png 2KB
drawable-xhdpi
sample_4.png 27KB
sample_6.png 33KB
ic_launcher.png 2KB
sample_5.png 32KB
sample_1.png 28KB
sample_2.png 24KB
sample_3.png 37KB
drawable-xxhdpi
ic_launcher.png 2KB
values
strings.xml 130B
styles.xml 697B
dimens.xml 220B
values-sw720dp-land
dimens.xml 277B
drawable-mdpi
ic_launcher.png 1KB
values-sw600dp
dimens.xml 203B
layout
activity_samples.xml 2KB
.settings
org.eclipse.jdt.core.prefs 177B
src
com
meg7
samples
SamplesActivity.java 2KB
project.properties 602B
AndroidManifest.xml 878B
.gitignore 332B
README.md 2KB
共 52 条
- 1
资源评论
- 潘廖明2015-08-11但不是我要的那种。
- 梅明子2015-01-15看起来还行,但不是我要的那种。
wang584136
- 粉丝: 1
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 自动驾驶-状态估计和定位之Error State EKF.pdf
- STM32F103ZET6+北斗
- 程序流程图的说明及图形示例
- FDN5618P-NL-VB一款SOT23封装P-Channel场效应MOS管
- Go语言基础(变量和基本类型).zip
- 基于CYCLONE2 (EP2C8Q) FPGA 设计PLL锁相环设置时钟Verilog源码Quartus工程文件.zip
- FDN372S-NL-VB一款SOT23封装N-Channel场效应MOS管
- date0425111111111111111111111
- 包含贪心算法的定义及python代码部分实现
- 自动驾驶-状态估计和定位之扩展卡尔曼滤波.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功