1
有什么方法可以修复MarkView的位置?我需要在左上角或右上角修复MarkView。MPAndroidChart MarkView in fixed potion
有什么方法可以修复MarkView的位置?我需要在左上角或右上角修复MarkView。MPAndroidChart MarkView in fixed potion
您应该创建一个自定义的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;
它的工作,但它总是在一个位置,但我需要显示MarkView在左,右,如果在手指点离开那么MarkView在正确的位置或右边的点MarkView左边,请给出一个建议。 –