Starting position for EditText cursor

Put your problem here if it does not fit any of the other categories.

Starting position for EditText cursor

Postby emptyonline » Sat Feb 23, 2008 10:16 pm

Is there a way to set the cursor of an EditText to start at the top left? Currently the EditText cursor seems to start in the middle of the widget.

Thanks.
emptyonline
Freshman
Freshman
 
Posts: 9
Joined: Tue Jan 29, 2008 6:25 am

Top

Postby plusminus » Sun Feb 24, 2008 10:06 pm

Hello emptyonline,

what exactly do you mean...
Your problem occurs, when EditText is empty or not :?:

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby wonderoid » Sun Feb 24, 2008 10:41 pm

set gravity to top (either in xml android:gravity for that component or in code)
wonderoid
Junior Developer
Junior Developer
 
Posts: 10
Joined: Sat Feb 16, 2008 10:33 pm

Postby emptyonline » Sun Feb 24, 2008 11:20 pm

Thanks, that's exactly what I needed!
emptyonline
Freshman
Freshman
 
Posts: 9
Joined: Tue Jan 29, 2008 6:25 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 18 guests