上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 25 下一页
摘要: @Override public void onBindViewHolder(@NonNull ViewHolder holder, int i) { Glide.with(context).load(data.get(i).get("pic")).into(holder.img); holder. 阅读全文
posted @ 2019-08-03 19:24 李艳艳665 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 自定义属性xml文件 <?xml version="1.0" encoding="utf-8"?><resources> <declare-styleable name="CertificationProgress"> <attr name="textSize" format="dimension" 阅读全文
posted @ 2019-08-03 19:23 李艳艳665 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 布局文件 <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.androi 阅读全文
posted @ 2019-08-03 19:23 李艳艳665 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 在init(Context context, AttributeSet attrs, int defStyleAttr)方法中在相应的api版本中使用strem编程如下: if (textArray == null) { if (Build.VERSION.SDK_INT >= Build.VERS 阅读全文
posted @ 2019-08-03 19:23 李艳艳665 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 之前设置的都是在布局XML文件配置的,要想从代码角度来动态设置还需要我们进行一些改造如下: 设置路程数量及文字资源 public void setStepTextContent(@NonNull List<String> paramList) { this.stepCount = paramList 阅读全文
posted @ 2019-08-03 19:23 李艳艳665 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 1)在此应为是动态设置了,为了更好的伸缩性,我们将存储文字的数组改为可变长的集合,同样存储文字长度的数组也要更改为集合,并在自定义属性中增加文字数组的属性stepTextContent,所以我们更改初始化方法init(Context context, AttributeSet attrs, int 阅读全文
posted @ 2019-08-03 19:23 李艳艳665 阅读(141) 评论(0) 推荐(0) 编辑
摘要: @Override protected void onDraw(Canvas canvas) { int w = getWidth() - getPaddingLeft() - getPaddingRight() - maxImgXRadio * 2; int h = getHeight() - g 阅读全文
posted @ 2019-08-03 19:22 李艳艳665 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 由于基线不变,直接进行绘制粗线条部分,由上编码可得: @Override protected void onDraw(Canvas canvas) { int w = getWidth() - getPaddingLeft(http://www.amjmh.com/v/) - getPaddingR 阅读全文
posted @ 2019-08-03 19:21 李艳艳665 阅读(86) 评论(0) 推荐(0) 编辑
摘要: private void collectAndIdentifyDir(Map<File, File> dirInputMap, DirectoryInput input, File rootOutput, boolean isIncremental) { final File dirInput = 阅读全文
posted @ 2019-08-02 21:02 李艳艳665 阅读(128) 评论(0) 推荐(0) 编辑
摘要: private void innerCollectMethodFromSrc(File srcFile, boolean isSingle) { ArrayList<File> classFileList = new ArrayList<>(); if (srcFile.isDirectory()) 阅读全文
posted @ 2019-08-02 21:02 李艳艳665 阅读(110) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 25 下一页