diff --git a/ui/styling/stylers.android.ts b/ui/styling/stylers.android.ts index ef9daa273..4f4c9f129 100644 --- a/ui/styling/stylers.android.ts +++ b/ui/styling/stylers.android.ts @@ -7,7 +7,6 @@ import definition = require("ui/styling"); import stylersCommon = require("ui/styling/stylers-common"); import enums = require("ui/enums"); import utils = require("utils/utils"); -import imageSource = require("image-source"); // merge the exports of the common file with the exports of this file declare var exports; @@ -38,7 +37,12 @@ export class DefaultStyler implements definition.stylers.Styler { //Background image methods private static setBackgroundImageSourceProperty(view: view.View, newValue: any) { - (view.android).setBackgroundDrawable(new android.graphics.drawable.BitmapDrawable(newValue)); + var nativeView = view.android; + var bmp = newValue; + var d = new android.graphics.drawable.BitmapDrawable(bmp); + d.setTileModeXY(android.graphics.Shader.TileMode.REPEAT, android.graphics.Shader.TileMode.REPEAT); + d.setDither(true); + nativeView.setBackgroundDrawable(d); } private static resetBackgroundImageSourceProperty(view: view.View, nativeValue: any) { diff --git a/ui/styling/stylers.ios.ts b/ui/styling/stylers.ios.ts index f2d752b1b..6d1dc015e 100644 --- a/ui/styling/stylers.ios.ts +++ b/ui/styling/stylers.ios.ts @@ -3,7 +3,6 @@ import style = require("ui/styling/style"); import definition = require("ui/styling"); import stylersCommon = require("ui/styling/stylers-common"); import enums = require("ui/enums"); -import imageSource = require("image-source"); // merge the exports of the common file with the exports of this file declare var exports;