File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ compile 'org.yh.yhframe:YhLibraryForAndroid:last_version'
6161 13. ViewUtils . java 系统界面工具类(截屏)
6262 14. YHViewInject . java 侵入式View 的调用工具类
6363 15. AnnotateUtil . java 注解工具类(View id绑定)
64+ 16. YHImageViewRoundOval . java 实现圆形、圆角,椭圆等自定义图片View
6465 ```
6566 ## view包说明:
6667 ``` java
@@ -126,6 +127,27 @@ compile 'org.yh.yhframe:YhLibraryForAndroid:last_version'
126127 其实YHLoadingBar 在cancel的时候已经释放掉了,可以不用手动释放,但是这里也提供释放的方法,根据自己需要选择
127128 在Activity onDestroy调用,个人建议在BaseActivity ,资源释放只会释放无效的资源
128129 YHLoadingBar . release();
130+ 16. 布局中加入
131+ < org.yh.library.view. YHImageViewRoundOval
132+ android: id= " @+id/img1"
133+ android: layout_width= " wrap_content"
134+ android: layout_height= " wrap_content"
135+ android: layout_gravity= " center"
136+ android: src= " @drawable/img_default" / >
137+ ...
138+ @BindView (id = R . id. img1)
139+ private YHImageViewRoundOval img1;
140+
141+ // public static final int TYPE_CIRCLE = 0;// 圆形
142+ // public static final int TYPE_ROUND = 1;// 圆角矩形
143+ // public static final int TYPE_OVAL = 2;//椭圆形
144+
145+ img1. setType(YHImageViewRoundOval . TYPE_ROUND );
146+ img1. setRoundRadius(20 );// 矩形凹行大小
147+
148+ img1. setType(ZQImageViewRoundOval . TYPE_OVAL );
149+ img1. setRoundRadius(45 );// 圆角大小
150+
129151 ```
130152
131153 ## 数据库操作
You can’t perform that action at this time.
0 commit comments