干货处理onDraw()方法不被执行的解决方法:setWillNotDraw(false);官方文档的解释:Ifthisviewdoesn'tdoanydrawingonitsown,setthisflagtoallowfurtheroptimizations.Bydefault,thisflagisnotsetonView,butcouldbesetonsomeViewsubclassessuchasViewGroup.Typically,ifyouoverrideonDraw(Canvas...
查看全文