mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
Merge pull request #1390 from NativeScript/button-bkg
yet another fix for the android button background
This commit is contained in:
@ -159,7 +159,9 @@ export module ad {
|
|||||||
v.borderWidth === 0 && v.borderRadius === 0 &&
|
v.borderWidth === 0 && v.borderRadius === 0 &&
|
||||||
types.isNullOrUndefined(v.style._getValue(style.backgroundImageProperty)) &&
|
types.isNullOrUndefined(v.style._getValue(style.backgroundImageProperty)) &&
|
||||||
!types.isNullOrUndefined(v.style._getValue(style.backgroundColorProperty))) {
|
!types.isNullOrUndefined(v.style._getValue(style.backgroundColorProperty))) {
|
||||||
bkg.setColorFilter(v.style._getValue(style.backgroundColorProperty).android, android.graphics.PorterDuff.Mode.SRC_IN);
|
let backgroundColor = bkg.backgroundColor = v.style._getValue(style.backgroundColorProperty).android;
|
||||||
|
bkg.setColorFilter(backgroundColor, android.graphics.PorterDuff.Mode.SRC_IN);
|
||||||
|
bkg.backgroundColor = backgroundColor;
|
||||||
} else if (v.borderWidth !== 0 || v.borderRadius !== 0 || !backgroundValue.isEmpty()) {
|
} else if (v.borderWidth !== 0 || v.borderRadius !== 0 || !backgroundValue.isEmpty()) {
|
||||||
|
|
||||||
if (!(bkg instanceof dts.ad.BorderDrawable)) {
|
if (!(bkg instanceof dts.ad.BorderDrawable)) {
|
||||||
|
Reference in New Issue
Block a user