Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MACandleStickChart滑动松开怎么让自己的十字线消失 #10

Open
zhouchao1994315 opened this issue Oct 26, 2016 · 1 comment
Open
Labels

Comments

@zhouchao1994315
Copy link

可以setClickPostY、setClickPostX、invalidate让组合一起用的另一个上面的十字线消失,但是调用同样的方法不能让它本身的十字线消失,请问怎么解决呢,求指教,谢了!

@limccn
Copy link
Owner

limccn commented Oct 26, 2016

There are 2 ways to hide the cross lines, you can choose the way you want.

  1. Set touched point to (0,0) or (-1,-1) use setTouchPoint method in cn.limc.androidcharts.common.CrossLines.GridChart when touched point changed.

2.Use setter to change the properties in class cn.limc.androidcharts.common.CrossLines to choose which cross line to be hidden.

private boolean displayCrossXOnTouch = DEFAULT_DISPLAY_CROSS_X_ON_TOUCH;
private boolean displayCrossXDegreeOnTouch = DEFAULT_DISPLAY_CROSS_X_DEGREE_ON_TOUCH;
private boolean displayCrossYOnTouch = DEFAULT_DISPLAY_CROSS_Y_ON_TOUCH;
private boolean displayCrossYDegreeOnTouch = DEFAULT_DISPLAY_CROSS_Y_DEGREE_ON_TOUCH;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants