
自定义控件
T_yoo_csdn
这个作者很懒,什么都没留下…
展开
-
android-自定义控件通过属性设置TextSize时遇到的getDimension转换问题
自定义控件组的时候如果遇到想通过自定义的属性设置TextView字体大小时如何圆满解决TypedArray.getDimension取到的不是你想要的值的问题。https://www.aliyun.com/jiaocheng/44137.htmlprivate int mCenterTextSizeSp = 0; mCenterTextSizeSp = a.getInteger(R.styleab...原创 2018-04-26 10:59:14 · 1696 阅读 · 0 评论 -
自定义控件
https://www.cnblogs.com/android-blogs/p/5718496.html TypedArray attributes = context.obtainStyledAttributes(attrs, R.styleable.CustomTitleBar); if (attributes != null) { //处理t...原创 2018-11-27 11:05:50 · 183 阅读 · 0 评论