pointScrollView

Introduction: 仿 ios 的 scroll 控件自由拉伸,保持对应点上的控件的位置不变
More: Author   ReportBugs   DemoAPK   
Tags:
uiscrollview-viewgroup-自由拉伸-

a scrollview Imitation ios uiscrollview,make it support sroll weiget when zoom

Effect
weiget Effect

Usage

To use PointScrollView, use the Builder pattern.

As an example:

 PointScrollView mapview = (PointScrollView) findViewById(R.id.mapview);
 mapview.setMap("map_stadium.jpg");
 mapview.drawPoint(point.x,point.y,point.getDrawableRes(this),point);
 mapview.removeAllViews();//remove all points(except map)
 mapview.setOnPointClickListener(new PointScrollView.OnPointClickListener() {
     @Override
     public void onCick(View pointView, Object point) {
     PlayGroundPoint clickPoint = (PlayGroundPoint)point;
     Toast.makeText(getApplicationContext(),"clickPoint:" + clickPoint.description,Toast.LENGTH_SHORT).show();
     }
 });

Copyright george.yang (my log) © 2014-2015. All rights reserved.

This library is distributed under an MIT License.

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools