1. Center Text in EditText
- Posted by dcole May 27, 2010
- 1303 views
Hello All,
What's the best way to center text in an EditText?
Don Cole
2. Re: Center Text in EditText
- Posted by DerekParnell (admin) May 27, 2010
- 1296 views
dcole said...
Create the control using the ES_CENTER flag.
create(EditText, "Sample Text", TheWin, x, t, w, h, ES_CENTER)
3. Re: Center Text in EditText
- Posted by dcole May 28, 2010
- 1268 views
Thanks Derek,
I was thinking of padding the text right and left. But that seemed like a lot of trouble. I thought there might be an easier way.
Don Cole