如何创建心电图动画在Android上的应用

问题描述:

I codeD Android应用程序是从摄像机输入测量心脏率。我需要德兴心电图动画应用程序。我知道,心电图是没有关系的。不过,我会尽量根据心脏率,以显示标志。哪一种方法,我需要使用?动画绘制成一个视图对象从布局或直接绘制图形到画布。如果你提供一些线索,我会非常AP preciated。

I coded an android application which is measuring heart rate from camera input. I needed to desing an ECG animation to the application. I know that ECG isn't related. But I'll try to show the sign according to heart rate. Which method do I need to use? Drawing animation into a View object from layout or Drawing graphics directly to a Canvas. And if you give some clues I'll be very appreciated.

做心电数据......这就是我的编码,现在的实时图形,你需要创建一个自定义视图。然后在OnDraw的方法,你用你的画布上绘制位图。然后自定义里面我也实现了一个可运行的油漆使用的DrawLine线,然后无效()。我会告诉你code,但其因为一切我发现没有测量到的速度专有的,我不得不图表。

To do real time graphing of ECG data...which is what I am coding right now, you need to create a custom view. Then in the onDraw method you use your canvas to draw a bitmap. Then inside the custom I also implement a Runnable that paints the line using drawline, and then invalidates(). I'd show you code but its proprietary since everything I found did not measure up to the speeds I had to graph.