Is there a way to set the text in a label say, 10 pixels from the left.
I've checked out label.gravity = gravity. , but find only specific alignments, e.g. left, right, center, etc.
At the moment I'm placing two spaces in front of the text. I don't want to just center the text as I have several labels in a column and would like to align the start of all of the texts.
Erel,
Unfortunately they're not. The labels are inside a panel which is black. The labels are white and slightly smaller than the panel. This gives the illusion of a border around the labels.
I can't therefore make the labels transparent. I can live with placing two spaces before each text but would have preferred a more specific method.
Android doesn't mind how many views you use (unlike, say, VB6), so that isn't a problem. I have an app with a couple of hundred views in it and it works fine. If you just don't want to have to add them all in Designer manually, you could add them programmatically. Just create an array of all the labels you want to add another label over and then in a loop, add an overlaying label for each one and position it -- just a few lines of code.