adelarsq
adelarsq

Reputation: 3738

Textfield with centered text with Appcelerator Titanium

How to make textfields in Titanium with centered text? Is it possible using Android?

Upvotes: 0

Views: 1446

Answers (2)

drubin
drubin

Reputation: 1012

Have you tried textAlign:'center' property in the constructor/createTextField. I know this isn't in their API docs but it might just work this bug report seems to say that the property should have been added. (at least in the latest RC 1.7.0) it is how ever not in the API docs but this might have simply been an omission.

Give it a try comment if it works or doesn't if it does then maybe you should ping them to update the docs

Upvotes: 2

rivenate247
rivenate247

Reputation: 2101

Have you tried paddingLeft as a property?

Upvotes: 1

Related Questions