百度 地图 slidingmenu 黑边 使用截图的方式解决黑边问题,步骤: 1.slidingMenu打开的时候调用BaiduMap的snapshot方法截图获取Bitmap对象; 2.使用
最新推荐文章于 2022-07-19 22:42:56 发布
本文介绍了如何解决在使用slidingMenu与百度地图结合时出现的黑边问题。通过在slidingMenu打开时调用BaiduMap的snapshot方法截图,并将截图显示在地图上方,从而遮盖黑边。具体步骤包括设置FrameLayout,MapVie和ImageView,并在适当时机捕获并显示截图。
摘要由CSDN通过智能技术生成