課程
/移動(dòng)開(kāi)發(fā)
/Android
/Android-打造炫酷進(jìn)度條
文字的高度不應(yīng)該是descent+ascent嗎?
2016-10-22
源自:Android-打造炫酷進(jìn)度條 3-1
正在回答
視頻中沒(méi)錯(cuò),應(yīng)為:mPaint.descent()-mPaint.ascent()
因?yàn)閙Paint.ascent()為負(fù)值,所以需要拿來(lái)減
具體看文章:https://blog.csdn.net/mq2856992713/article/details/52327938
mPaint.descent()+mPaint.ascent() ,就是descent+ascent啊~
舉報(bào)
Android開(kāi)發(fā)中各種各樣的自定義進(jìn)度條介紹,讓你的APP更炫酷
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2018-07-23
因?yàn)閙Paint.ascent()為負(fù)值,所以需要拿來(lái)減
具體看文章:https://blog.csdn.net/mq2856992713/article/details/52327938
2016-11-01
mPaint.descent()+mPaint.ascent() ,就是descent+ascent啊~