Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Padding on a view element

Is there a way to get padding (like CSS padding) on a view element?

Say I want my view to be as long as my content, but it has a bgcolor.
I don't want the text to hug the edges of the coloured box so I want to give it some padding. I need to use flexible height as data is provided dynamically by a database.

Is there any way to achieve this?

Many thanks!

— asked July 7th 2010 by HOWEST *
  • auto
  • height
  • mobile
  • padding
  • view
1 Comment
  • I also have this question, does anyone know how to do this? Or HOWEST, have you figured out how to do it already since 3 months ago?

    — commented September 20th 2010 by Christopher La Chica

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.