Project: titanium
Issue TIMOB-684: Android: Border properties are broken for ImageView
{code} // In Android, the border around the image is not visible // I tried removing borderRadius property, but the issue still remains // It works on iPhone though var imageView = Titanium.UI.createImageView({ url: "/path/to/image", width: 280, height: 175, borderWidth: 1, borderColor: "#ccc", borderRadius: 5 }); Titanium.UI.currentWindow.add(imageView); // Workaround // Wrap the image view in another view and set its border properties // Set the width and height to be 2 pixels more than the width and height of the image view var wrapperView = Titanium.UI.createView({ width: 282, height: 177, borderWidth: 1, borderColor: "#ccc", borderRadius: 5 }); var imageView = Titanium.UI.createImageView({ url: "/path/to/image", width: 280, height: 175 }); wrapperView.add(imageView); Titanium.UI.currentWindow.add(wrapperView); {code}
Story points: 2