mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix issue with black random black items when scrolling
This commit is contained in:
@@ -39,6 +39,8 @@ export class ListView extends common.ListView {
|
|||||||
public _createUI() {
|
public _createUI() {
|
||||||
this._android = new android.widget.ListView(this._context);
|
this._android = new android.widget.ListView(this._context);
|
||||||
|
|
||||||
|
// Fixes issue with black random black items when scrolling
|
||||||
|
this._android.setCacheColorHint(android.graphics.Color.TRANSPARENT);
|
||||||
if (!this._androidViewId) {
|
if (!this._androidViewId) {
|
||||||
this._androidViewId = android.view.View.generateViewId();
|
this._androidViewId = android.view.View.generateViewId();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user