百度 地图 slidingmenu 黑边 使用截图的方式解决黑边问题,步骤: 1.slidingMenu打开的时候调用BaiduMap的snapshot方法截图获取Bitmap对象; 2.使用

本文介绍了如何解决在使用slidingMenu与百度地图结合时出现的黑边问题。通过在slidingMenu打开时调用BaiduMap的snapshot方法截图,并将截图显示在地图上方,从而遮盖黑边。具体步骤包括设置FrameLayout,MapVie和ImageView,并在适当时机捕获并显示截图。
摘要由CSDN通过智能技术生成

<FrameLayout
        android:id="@+id/frameLayout_map_id"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
       >
           
        <com.baidu.mapapi.map.MapView
            android:id="@+id/bmapView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:clickable="true" />
        <ImageView
            android:id="@+id/imageTemp"
            android:layout_width="match_parent"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值