Reputation: 19
Sometimes when Activity is launched background of view (example ListView) is not visible (but sometimes everything is ok). It does not matters if it is drawable or color and it does not happens always. You can launch the same activity 10 times and issue will happen only once or twice.
Issue happens on ICS (4.0) or later devices, on older version of android everything is ok.
How do we fix this issue?
Upvotes: 0
Views: 100
Reputation: 723
Try this on your OnCreate method, after setting the background and the adapter.
getListView().setCacheColorHint(0);
Upvotes: 0