试了网上的一些方式,好像最新版本启动会检查,如果删除广告块儿代码,会报错
那就修改视图的像素范围,隐藏广告吧
修改处:
文件位置:\youdao\YoudaoNote\theme\build.xml
找到这一块儿代码:
<PanelAd type="adpanel" css="public" ass="mainform panelclient PanelAd">
<panelTopLine type="panel" css="AdPanel" Dockstyle="top" Bounds="0,0,0,1"/>
<MiddlePhotoPanel type="panel" css="public" DockStyle="top" Bounds="0,0,250,160" Margin="0,13,0,13">
<AdPhoto type="photo" css="Ad AdPhoto" AnchorStyle="center" AutoZoom="ZoomEqual" Bounds="0,0,0,0">
<AdClose type="button" css="adclear" AnchorStyle="topright" Bounds="-1,1,24,24" />
<AdText type="label" css="AdText" AnchorStyle="bottomleft" Bounds="6,-6,25,10"/>
</AdPhoto>
</MiddlePhotoPanel>
</PanelAd>
需要修改的地方是其中的这一行(如下,修改后)
<AdPhoto type="photo" css="Ad AdPhoto" AnchorStyle="center" AutoZoom="ZoomEqual" Bounds="0,0,0,0">
将Bounds中的值改为0,0,0,0,保存就可