Because you cannot call the draw methods directly. You must call invalidate(), this will cause onDraw() to be executed.
On Thu, May 21, 2009 at 12:54 AM, guruk <[email protected]> wrote: > > Hi, hope you can help: > > I have : > > 1. private static class SampleView extends View implements > OnGestureListener { //init variables } > 2. public SampleView(Context context) { super(context); buildPoints > ();} > 3. @Override protected void onDraw(Canvas canvas) { paintchart > (canvas,param); } > 4. public void paintchart(Canvas canvaschart, int param) { // drawing > my chart } > > my GestureListener Methods: > - public boolean onTouchEvent(MotionEvent me) { > - public boolean onScroll(MotionEvent e1, MotionEvent e2, float > distanceX, float distanceY) { > - public boolean dispatchTouchEvent(MotionEvent me) { > > It works fine for all calculations. When I scroll I even get the right > data in my PainChart(canvas) > But.... the Display come NOT updated?? Why. > > When I call the paintchart from OnDraw() with different Params it > works fine. > But when it come called from onScroll or even direct just for test in > onTouchEvent, it does not update > my View... ?? > > Any Ideas > > Thanks and wish you all the best > Chris > > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

