ondraw
Delaying after onDraw()/onCreate()
Where in this code would I put a thread delay, that will happen after the completion of onCreate(), which means also after the completion/showing of onDraw()? Afterwards I will be calling grid.clearPa[详细]
2023-04-10 19:48 分类:问答Canvas android question regarding endpoints
Why does on draw sometimes what pixels like: xAxis = new RectF(0, 0, 400, 400); Other times it takes float points like:[详细]
2023-03-29 02:48 分类:问答How to define a pixel independent height in an onDraw() method
I have extended View to build a custom widget. I would like to define the height of the widget with an independ pixel unit.[详细]
2023-03-27 16:35 分类:问答Do I need to use an invalidate call and if so where?
I have an activity which shows a view, within the view there is a canvas which is draw, then I have an ontouch function which should allow the canvas to be dragged/zoomed. However when debugging it ap[详细]
2023-03-24 18:05 分类:问答Android : click / touch event not working after canvas translate
I have a FrameLayout that contains several ImageView. On the main activity, I record the touch events in order to move my FrameLayout and the images inside with the finger (drag).[详细]
2023-03-23 21:51 分类:问答Drawing to a created Bitmap from onDraw()
I\'m trying to draw to a Bitmap so I can put my custom view inside an imageView.The code within the onDraw method is:[详细]
2023-03-23 03:01 分类:问答Android How to create onClick events in Canvas onDraw method
i\'ve searched around and still can\'t find a good answer. I have made my own class that extends an imageView and in the onDraw() method i am using canvas to draw circles onto my image.[详细]
2023-03-23 01:15 分类:问答How onDraw method works in subclass of android-custom-view class?
I facing problem to draw rectangle at subclass of my android custom view class. Each time super class onDraw method works.But subclass onDraw method never executed. Super class will draw a rectangle a[详细]
2023-03-23 00:23 分类:问答android canvas - can i have multiple draw methods?
I have made my own canvas class which extends an imageView. My onDraw() method draws out the users gps position and I keep calling this onDraw method every time the user moves. My problem is I also wa[详细]
2023-03-22 23:30 分类:问答Android wait for UI thread to invalidate
I am having problems redrawing the view in a painting app. When the touch ends, I call touch_up() to make the path, invalidate() to draw it, and storeView() to push the current view on the stack. Howe[详细]
2023-03-22 12:29 分类:问答