a scrollview Imitation ios uiscrollview,make it support sroll weiget when zoom
Effect |
---|
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.