課程
/移動開發(fā)
/Android
/Android實現(xiàn)衛(wèi)星菜單
如題。在onMeasure()中,最后不用調用setMeasuredDimension()方法嗎?
2017-11-05
源自:Android實現(xiàn)衛(wèi)星菜單
正在回答
分情況吧,假如你需要設置width, height 屬性為match_parent或者wrap_content ,那么你就得調用setMeasuredDemension 來設置寬和高
舉報
學習仿Path的衛(wèi)星式菜單,課程涵蓋了自定義控件的整個過程
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2021-03-09
分情況吧,假如你需要設置width, height 屬性為match_parent或者wrap_content ,那么你就得調用setMeasuredDemension 來設置寬和高