Here is the problem. For performance reasons, I prefer to use SurfaceView to draw a tabular form, and since this material is full of data, I use ScrollView as the parent of SurfaceView.
I am glad to see that it works fine on my personal mobile phone (HTC Desire HD 2.3.7), I tried to test it on one of the phones dedicated to the development of my company (Google Nexus S 4.1.?), And then my personal phone (HTC One X 4.1.1).
Something went wrong on the last two, my SurfaceView just went dark after scrolling ~ 80 pixels and got back to what it should look like when I scroll back under this size ~ 80 pixels (depending on screen size).
Trying to avoid this dimming, I tested some emulators ...
From 2.2 (customer desire) to 4.0.4, it works great.
The joke is under 4.2 ... it works too!
Definitely, it is only under 4.1.x that the SurfaceView goes black!
Here is my SurfaceView code that I just copied from the example you can find here .
public class MySurfaceView extends SurfaceView { public MySurfaceView(Context context, AttributeSet attrs) { super(context, attrs);
source share