2016-04-30 41 views

回答

0

您应该创建一个自定义的MarkerView,就像在documentation中一样。

然后,定制getXOffset和getYOffset这样的:

@Override 
public int getXOffset(float xpos) { 
    // this will cause the marker-view to be at left of the screen 
    return -(int)xpos; 
} 

@Override 
public int getYOffset(float ypos) { 
    // this will cause the marker-view to be at top screen 
    return -(int)ypos; 
+0

它的工作,但它总是在一个位置,但我需要显示MarkView在左,右,如果在手指点离开那么MarkView在正确的位置或右边的点MarkView左边,请给出一个建议。 –