自定义控件及动画
_东风笑西风
这个作者很懒,什么都没留下…
展开
-
仿京东淘宝等首页广告弹窗广告 dialog
记录贴 防止以后忘记. 1.dialog布局 图片随便找的 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <Text转载 2017-07-18 15:46:05 · 4479 阅读 · 0 评论 -
android 自定义view之简易环形进度条
主要是画笔的使用方法 先看效果图 不多说,看代码 1.自定义属性 attrs.xml 2.activity的布局 <LinearLayout xmlns:android="http://schemas.and原创 2017-07-19 17:27:05 · 915 阅读 · 0 评论 -
Android 流式布局之自动换行
import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup; import java.util.ArrayList; i原创 2017-07-14 11:02:02 · 1693 阅读 · 1 评论 -
Android自定义View之圆形头像
记录贴 现在制作圆形头像的第三方工具已经很多了,本帖只为记录自定义view学习过程。 1.主体代码部分 public class CirclePhotoView extends View { private int max;//最大进度 private int roundColor;//圈颜色 private int roundProgressColo原创 2017-07-24 16:11:03 · 979 阅读 · 0 评论 -
Android 自定义View之放大镜效果
记录学习自定义view过程 1.主体代码 public class ZoomImageView extends View { //放大倍数 private static final int FACTOR =2; //放大镜的半径 private static final int RADIUS = 50; // 原图 priva原创 2017-07-25 14:49:37 · 2782 阅读 · 1 评论