Skip to content Skip to sidebar Skip to footer

Surfaceview Setmeasureddimension() With Height Greater Than 4096 Crashes

I'm using surfaceview in my work. My requirement is to make a curved line in a vertical scrollview. When I test it I found when the height is less than 4096 it works well, but mo

Solution 1:

The reason might me the max supported texture size of your device.

Which seem to be 4096 in your case.You should not use bigger values for your surface.

Take a look at: How can I find the maximum texture size for different phones?

to find what texture sizes are supported

Post a Comment for "Surfaceview Setmeasureddimension() With Height Greater Than 4096 Crashes"