Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

henCode/ChinaMap

Open more actions menu
 
 

Repository files navigation

ChinaMap

通过svg文件绘制中国地图

涉及技术

  • xml文件解析
  • svg 路径信息与Path转换
  • Canvas绘制path
  • 自定义控件手势处理
  • RxJava 异步任务处理
  • Java8 Lambda 兼容

APK下载

使用方式

<com.example.nemo.mapdemo.map.ChinaMapView
        android:id="@+id/view_map"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

着色方式自由选择,按照简单粗暴的是否着色

mapView.setmColorStrategy(new BooleanColorStrategy());//数据参考//parseDemoData2

效果图

按照权值,着颜色深重

mapView.setmColorStrategy(new ValueColorStrategy());//数据参考//parseDemoData

效果图

这个版本将库独立,去掉了lamada表达式,已达到更大兼容

About

利用xml解析SVG文件绘制中国省份地图

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.