Set background drawable with "background" property.

--HG--
branch : dev
This commit is contained in:
Martín Lucas Golini
2017-08-13 17:27:53 -03:00
parent 2916c656b0
commit 0ff8533c78

View File

@@ -388,7 +388,7 @@ void UIWidget::loadFromXmlNode( const pugi::xml_node& node ) {
setBorderEnabled( true )->setColor( Color::fromString( ait->as_string() ) );
} else if ( "borderwidth" == name ) {
setBorderEnabled( true )->setWidth( PixelDensity::toDpFromStringI( ait->as_string("1") ) );
} else if ( "backgroundsrc" == name || "backgrounddrawable" == name ) {
} else if ( "background" == name ) {
Drawable * res = NULL;
if ( NULL != ( res = DrawableSearcher::searchByName( ait->as_string() ) ) ) {