How to solve :Node can be replaced by a TextView with compound drawables

  How to solve :Node can be replaced by a TextView with compound drawables

A LinearLayout which contains an ImageView and a TextView can be more efficiently handled as a compound drawable (a single TextView, using the drawableTop, drawableLeft, drawableRight and/or drawableBottom attributes to draw one or more images adjacent to the text).  If the two widgets are offset from each other with margins, this can be replaced with a drawablePadding attribute.  There's a lint quickfix to perform this conversion in the Eclipse plugin.  Issue id: UseCompoundDrawables

Post a Comment

[facebook]

MKRdezign

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget