Inspired by iphone - how to set cornerRadius for only top-left and top-right corner of a UIView? - Stack Overflow. for Titanium app.
You can see screenshot's example at example/app.js.
var TiCornerRadius = require('be.k0suke.ticornerradius');
var view = Ti.UI.createView({
width: 80,
height: 80,
backgroundColor: '#000',
cornerRadius: {
corners: TiCornerRadius.CORNER_TOP_LEFT | TiCornerRadius.CORNER_TOP_RIGHT,
radii: {
width: 20,
height: 20
},
border: {
width: 1,
color: '#f00'
}
}
});
- cornerRadius.corners / CORNER_TOP_LEFT or CORNER_TOP_RIGHT or CORNER_BOTTOM_LEFT / CORNER_BOTTOM_RIGHT / CORNER_ALL_CORNERS
- cornerRadius.radii.width / height
- cornerRadius.border.width / color
The MIT License (MIT) Copyright (c) 2014 Kosuke Isobe