ArcGIS for Android 设置地图网格背景
2015-08-13 11:38
351 查看
问题:在ArcGIS For Android10.2.6开发中,当项目价值tpk或者底图时,会出现网格背景,我们期望设置为白色背景。
解决:可以通过使用MapView控件的setMapBackground方法进行设下:
mMapView.setMapBackground(Color.WHITE, Color.WHITE, 0, 0);//设置背景为白色
Sets the map background with color and grid.
Parameters
解决:可以通过使用MapView控件的setMapBackground方法进行设下:
mMapView.setMapBackground(Color.WHITE, Color.WHITE, 0, 0);//设置背景为白色
public void setMapBackground (int bkColor, int gridColor, float gridSize,
float gridLineSize)
Sets the map background with color and grid.Parameters
bkColor | background color packed as ints. |
---|---|
gridColor | grid color packed as ints. |
gridSize | the size of grid. |
gridLineSize | the line size of grid |
相关文章推荐
- Android 关于fragment切换
- Android应用如何反馈Crash报告
- Android设置横屏和竖屏的方法
- Android HAL层解析
- Android 知识梳理
- android 进程和线程管理
- android 4.4 js调用webview activity方法记载
- Cool Android Apis 整理(一)
- Android百分比布局支持库介绍——com.android.support:percent
- Android结合volley的netWorkImageview实现图片文件缓存
- Android FragmentManage FragmentTransaction介绍(一)
- android RecyclerView 使用完全解析
- Android性能优化
- 基于mediaPlayer实现的播放器,带有分级的目录功能;
- Android Fragment基础及使用
- [自学AndroidStudio系列]第二篇章:快速上手AS小技巧其一
- android指定输入法类型
- Android JNI Lame编解码实现wav到MP3的转换
- Android AIDL使用步骤
- android开发 获取父控件的高宽