views:

38

answers:

1

Hello,

I was wondering if there was any way that I could get a hint at the bottom of an Edit Text view -- and then the user to start entering text at the top of the box.

As a bonus question, is there any way I can make the hint NOT disappear once the user starts entering text.

Let me know if you don't understand my question and I will try to clarify.

Thanks a bunch, hwrd

+2  A: 

You can set the position of the text using the "gravity" attribute (as noted at http://developer.android.com/reference/android/widget/TextView.html#setGravity(int)). So to put the text at the bottom you would have;

android:gravity="bottom"

And to answer your bonus question; No, you can't display the hint when text is entered into the edit text view. Displaying the hint only when the box is empty is the defined behaviour as noted at http://developer.android.com/reference/android/widget/TextView.html#setHint(int)

(and yes, I know the links are for TextView, but EditText derives all of its' text positioning and hint handling functionality from TextView).

Al Sutton
Thanks, I figured this was the case. I was trying to have a live text counter display as a hint at the bottom of the textbox using the TextWatcher functionality. I've gotten the live text counter and the android:gravity stuff to work -- however I think that putting the hint inside of the EditText field would be cool... Too bad it can't be done.
hwrdprkns