为了账号安全,请及时绑定邮箱和手机立即绑定

为什么我的text size不起作用呢?无论怎么设置,都很小

mTextSize这个变量,在整个过程中都没有使用啊

<co.customview.RoundProgressBar
   android:visibility="visible"
   android:id="@+id/progressbar"
   android:background="@color/black5"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:layout_centerInParent="true"
   custom:progress_radius="30dp"
   custom:progress_text_size="12dp"
   custom:progress_text_color="@color/white_bg"
   custom:progress_reach_color="@color/colorAccent"
   custom:progress_unReach_color="@color/white_bg"/>

正在回答

1 回答

你换成sp看看?老师的源代码:

https://github.com/hongyangAndroid/Android-ProgressBarWidthNumber

0 回复 有任何疑惑可以回复我~
#1

brucezhang 提问者

我找到原因了,在写环形进度条时没有在构造方法中设置 mpaint.setTextSize(),老师的是继承关系,所以没事
2016-05-26 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Android-打造炫酷进度条
  • 参与学习       30851    人
  • 解答问题       59    个

Android开发中各种各样的自定义进度条介绍,让你的APP更炫酷

进入课程

为什么我的text size不起作用呢?无论怎么设置,都很小

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信