backgroundImage property now use Fetcher & Cache as Image component (#4030)

* backgroundImage property now use Fetcher & Cache as Image component
Fix GridLayout tests on iPhone Plus - actualLength wasn’t rounded
ImageCache is closed when activity is stopped

* Fix reset of background drawable.

* additional check for drawable

* imageCache init cache on activity Started
This commit is contained in:
Hristo Hristov
2017-04-21 16:50:12 +03:00
committed by GitHub
parent 483df829c9
commit 9e3222781a
18 changed files with 403 additions and 396 deletions

View File

@ -71,7 +71,9 @@
clipPath: string,
backgroundColor: number,
backgroundImage: android.graphics.Bitmap,
backgroundImage: string,
backgroundBitmap: android.graphics.Bitmap,
context: android.content.Context,
backgroundRepeat: string,
backgroundPosition: string,
backgroundPositionParsedCSSValues: native.Array<CSSValue>,
@ -100,7 +102,9 @@
public getClipPath(): string;
public getBackgroundColor(): number;
public getBackgroundImage(): android.graphics.Bitmap;
public getBackgroundImage(): string;
public getBackgroundBitmap(): android.graphics.Bitmap;
public getBackgroundRepeat(): string;
public getBackgroundPosition(): string;
public getBackgroundSize(): string;
@ -401,6 +405,7 @@
public addImageCache(cache: Cache): void;
public initCache(): void;
public clearCache(): void;
public closeCache(): void;
public loadImage(data: Object, imageView: ImageView,
decodeWidth: number, decodeHeight: number, useCache: boolean, async: boolean,
listener: Worker.IOnImageLoadedListener): void;