Padding Top and Padding Bottom in Appcelerator Titanium
Add a view with your padding amount as height to the view who needs to get the padding.
var viewWithPadding = Titanium.UI.createView({ height: Ti.UI.SIZE, backgroundColor: '#000000' });
var paddingView = Titanium.UI.createView({ height: '10dp' });
viewWithPadding.add(paddingView);
Tadaa! Now there is 10dp padding at your view.
Written by Denver Sessink
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Appcelerator
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#