kaeppler/ignition — Issue #14: RemoteImageView should not apply attributes
Author: rburgst
Created: 2012-02-26 21:39:36+00:00
State: open

In addImageView the given attributes are applied which causes any paddings, etc be applied to both the ViewSwitcher(from RemoteImageView) as well as to the ImageView itself. The same is true for background brushes, which looks particularly bad if you use a 9 patch brush.

````
private void addImageView(Context context, AttributeSet attributes) {
// when the view has paddings, then it will be displaced
// if (attributes != null) {
// // pass along any view attribtues inflated from XML to the image view
// imageView = new ImageView(context, attributes);
// } else {
imageView =
````