Im using this tutorial to create a custom view : LINK
Initially the Canvas
was not drawing all the parts, but after turning off hardware acceleration, all the parts are drawn. I set this setLayerType(View.LAYER_TYPE_SOFTWARE,null);
in the constructor of my custom view ( tried setting in the manifest too).
But the Canvas.drawText()
(For the degree celsius values ) is only drawing "0" instead of the values and is not ordered. My problem is exactly same as in here : Link to the image . I use the same method as in this link.
This is working fine on Sony Experia M (4.1.2) , problem is occurring on Samsung Galaxy S5 (4.4.2)
Does anyone know why this problem is occurring? Thanks.