7

Alignment of view Class

view full story
linux-howto

http://stackoverflow.com – I am working on speedometer app using GPS and having problem with the view class of the App.All the properties using in the app aligning to the center except the needle.. The class is extending the view and the code i am using in onDraw method is.... protected void onDraw(Canvas canvas) { canvas.drawBitmap(speedo_meter, (canvas.getWidth() / 2)- speedo_meter.getWidth() / 2, (canvas.getHeight() / 3)- speedo_meter.getHeight() / 2, null); // Main Meter Needle matrix_needle = new Matrix(); // canvas.drawBitmap(needle, (canvas.getWidth() / 2)- needle. (HowTos)